Files
SDL3CPlusPlus/.github/workflows/Dockerfile
Richard Ward c11e1dca76 refactor
2025-12-18 22:43:45 +00:00

45 lines
1.1 KiB
Docker

ARG USERNAME=builder
ARG UID=1000
ARG GID=1000
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
cmake \
libegl-dev \
libegl1-mesa-dev \
libgl-dev \
libgl1-mesa-dev \
libudev-dev \
libwayland-dev \
libxcb-util-dev \
libxcb-util0-dev \
libxkbcommon-dev \
libxrandr-dev \
libx11-dev \
pkg-config \
python3 \
python3-pip \
ca-certificates \
git \
&& rm -rf /var/lib/apt/lists/*
RUN python3 -m venv /opt/venv
ENV PATH="/opt/venv/bin:${PATH}"
RUN pip install --upgrade pip
RUN pip install --no-cache-dir "conan>=2"
RUN groupadd --gid ${GID} ${USERNAME} && \
useradd --uid ${UID} --gid ${GID} -m ${USERNAME}
WORKDIR /workspace
COPY . /workspace
RUN conan install . --output-folder /conan_build --build=missing -c tools.system.package_manager:mode=install
RUN chown -R ${USERNAME}:${USERNAME} /workspace /conan_build
USER ${USERNAME}
ENV HOME=/home/${USERNAME}
WORKDIR /workspace