diff options
| author | Ted John <[email protected]> | 2022-06-08 00:24:13 +0000 |
|---|---|---|
| committer | Ted John <[email protected]> | 2022-06-08 00:24:13 +0000 |
| commit | d65ace7a0cab8d504eae64ce2ff36e77f7565652 (patch) | |
| tree | 73bb3ad4463cc323ba796f3329c521ba9d0cb8fb /develop/cli | |
| parent | 3a723d002b26fade805bc62b98a5bb37f3ad70d9 (diff) | |
| download | openrct2-docker-d65ace7a0cab8d504eae64ce2ff36e77f7565652.tar.gz openrct2-docker-d65ace7a0cab8d504eae64ce2ff36e77f7565652.zip | |
Do not build the UI layer
Diffstat (limited to 'develop/cli')
| -rw-r--r-- | develop/cli/Dockerfile | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/develop/cli/Dockerfile b/develop/cli/Dockerfile index 9f8f4d2..fecf6c3 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 duktape-dev libsdl2-dev libspeexdsp-dev 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 \ && rm -rf /var/lib/apt/lists/* \ && ln -s /usr/bin/clang-10 /usr/bin/clang \ && ln -s /usr/bin/clang++-10 /usr/bin/clang++ @@ -12,16 +12,19 @@ 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 \ + && cmake .. -G Ninja -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=/openrct2-install/usr -DDISABLE_GUI=ON \ && ninja -k0 install \ - && rm /openrct2-install/usr/lib/libopenrct2.a + && rm /openrct2-install/usr/lib/libopenrct2.a \ + # HACK due to issue in cmakelists, move content from cli + && mv /openrct2-install/usr/share/openrct2-cli/* /openrct2-install/usr/share/openrct2 \ + && rm -rf /openrct2-install/usr/share/openrct2-cli # 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 libduktape205 libpng16-16 libzip5 libcurl4 libfreetype6 libfontconfig1 libicu66 \ + && 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 \ |
