diff options
| author | Michael Steenbeek <[email protected]> | 2022-08-05 18:40:25 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-08-05 18:40:25 +0200 |
| commit | 007b7b441398dd943ba1b86ec60bc6d26419c7c6 (patch) | |
| tree | e16c266085da59692fa45edec381a3f5a80a6202 | |
| parent | d65ace7a0cab8d504eae64ce2ff36e77f7565652 (diff) | |
| download | openrct2-docker-007b7b441398dd943ba1b86ec60bc6d26419c7c6.tar.gz openrct2-docker-007b7b441398dd943ba1b86ec60bc6d26419c7c6.zip | |
Create file for v0.4.1, add FLAC+OGG to develop
| -rw-r--r-- | 0.4.1/cli/Dockerfile | 41 | ||||
| -rw-r--r-- | develop/cli/Dockerfile | 2 |
2 files changed, 42 insertions, 1 deletions
diff --git a/0.4.1/cli/Dockerfile b/0.4.1/cli/Dockerfile new file mode 100644 index 0000000..e298039 --- /dev/null +++ b/0.4.1/cli/Dockerfile @@ -0,0 +1,41 @@ +# Build OpenRCT2 +FROM ubuntu:20.04 AS build-env +ENV DEBIAN_FRONTEND=noninteractive +RUN apt-get update \ + && apt-get install --no-install-recommends -y git cmake pkg-config ninja-build clang-10 libsdl2-dev libspeexdsp-dev nlohmann-json3-dev libcurl4-openssl-dev libcrypto++-dev libfontconfig1-dev libfreetype6-dev libpng-dev libzip-dev libssl-dev libicu-dev libflac-dev libvorbis-dev \ + && rm -rf /var/lib/apt/lists/* \ + && ln -s /usr/bin/clang-10 /usr/bin/clang \ + && ln -s /usr/bin/clang++-10 /usr/bin/clang++ + +ENV OPENRCT2_REF v0.4.1 +WORKDIR /openrct2 +RUN git -c http.sslVerify=false clone --depth 1 -b $OPENRCT2_REF https://github.com/OpenRCT2/OpenRCT2 . \ + && mkdir build \ + && cd build \ + && cmake .. -G Ninja -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=/openrct2-install/usr \ + && ninja -k0 install \ + && rm /openrct2-install/usr/lib/libopenrct2.a + +# Build runtime image +FROM ubuntu:20.04 +# Install OpenRCT2 +COPY --from=build-env /openrct2-install /openrct2-install +RUN apt-get update \ + && apt-get install --no-install-recommends -y rsync ca-certificates libpng16-16 libzip5 libcurl4 libfreetype6 libfontconfig1 libicu66 \ + && rm -rf /var/lib/apt/lists/* \ + && rsync -a /openrct2-install/* / \ + && rm -rf /openrct2-install \ + && openrct2-cli --version + +# Set up ordinary user +RUN useradd -m openrct2 +USER openrct2 +WORKDIR /home/openrct2 +EXPOSE 11753 + +# Test run and scan +RUN openrct2-cli --version \ + && openrct2-cli scan-objects + +# Done +ENTRYPOINT ["openrct2-cli"] diff --git a/develop/cli/Dockerfile b/develop/cli/Dockerfile index fecf6c3..e7680db 100644 --- a/develop/cli/Dockerfile +++ b/develop/cli/Dockerfile @@ -2,7 +2,7 @@ FROM ubuntu:20.04 AS build-env ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update \ - && apt-get install --no-install-recommends -y git cmake pkg-config ninja-build clang-10 nlohmann-json3-dev libcurl4-openssl-dev libcrypto++-dev libfontconfig1-dev libfreetype6-dev libpng-dev libzip-dev libssl-dev libicu-dev \ + && apt-get install --no-install-recommends -y git cmake pkg-config ninja-build clang-10 nlohmann-json3-dev libcurl4-openssl-dev libcrypto++-dev libfontconfig1-dev libfreetype6-dev libpng-dev libzip-dev libssl-dev libicu-dev libflac-dev libvorbis-dev \ && rm -rf /var/lib/apt/lists/* \ && ln -s /usr/bin/clang-10 /usr/bin/clang \ && ln -s /usr/bin/clang++-10 /usr/bin/clang++ |
