Skip to content

Instantly share code, notes, and snippets.

@sthairno
Created March 27, 2024 06:53
Show Gist options
  • Save sthairno/72ba6f83468f73faa005db5e7373b7e3 to your computer and use it in GitHub Desktop.
Save sthairno/72ba6f83468f73faa005db5e7373b7e3 to your computer and use it in GitHub Desktop.
Container which builds and installs OpenSiv3D
FROM ubuntu:22.04
ARG SIV3D_VERSION="main"
ARG GCC_OPTIONS="-j4"
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
git \
build-essential \
cmake \
ninja-build \
libasound2-dev \
libavcodec-dev \
libavformat-dev \
libavutil-dev \
libboost-dev \
libcurl4-openssl-dev \
libgtk-3-dev \
libgif-dev \
libglu1-mesa-dev \
libharfbuzz-dev \
libmpg123-dev \
libopencv-dev \
libopus-dev \
libopusfile-dev \
libsoundtouch-dev \
libswresample-dev \
libtiff-dev \
libturbojpeg0-dev \
libvorbis-dev \
libwebp-dev \
libxft-dev \
uuid-dev \
xorg-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN git clone --depth 1 -b ${SIV3D_VERSION} https://github.com/Siv3D/OpenSiv3D /OpenSiv3D
WORKDIR /OpenSiv3D/Linux
RUN mkdir build \
&& cd build \
&& cmake -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo .. \
&& cmake --build . -- ${GCC_OPTIONS}
RUN cmake --install build
RUN rm -r /OpenSiv3D
WORKDIR /app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment