Dockerfile25 lines · 898 chars # Build Spine C++ native runtime from source in a robust Ubuntu container
FROM ubuntu:jammy-20260217
# Non-interactive frontend for apt
ENV DEBIAN_FRONTEND=noninteractive
# Install required build tools and libraries
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential cmake python3 python3-pip pkg-config \
libx11-dev libxcursor-dev libxinerama-dev libgl1-mesa-dev \
libglu-dev libasound2-dev libpulse-dev libudev-dev libxi-dev libxrandr-dev \
&& rm -rf /var/lib/apt/lists/*
# Copy the repository into the image
WORKDIR /workspace
COPY . /workspace
# Configure, build, and install Spine-Cpp from source
RUN cmake -S spine-cpp -B spine-cpp/build -DCMAKE_BUILD_TYPE=Release \
&& cmake --build spine-cpp/build --config Release -- -j$(nproc) \
&& cmake --install spine-cpp/build --prefix /usr/local
# Default to an interactive shell
CMD ["/bin/bash"]