diff options
| author | Ted John <[email protected]> | 2021-03-14 21:16:04 +0000 |
|---|---|---|
| committer | Ted John <[email protected]> | 2021-03-14 21:16:04 +0000 |
| commit | aee7f2c45d2d79f4d6080aa65947977ab6d1f52a (patch) | |
| tree | 52ed0919e72782248762f9fd8d08abe0fec4547c | |
| parent | e673df1bd58076d8fc502b7b117fb34158639ada (diff) | |
| download | openrct2-docker-aee7f2c45d2d79f4d6080aa65947977ab6d1f52a.tar.gz openrct2-docker-aee7f2c45d2d79f4d6080aa65947977ab6d1f52a.zip | |
Add Dockerfile for v0.3.3
| -rw-r--r-- | 0.3.3/cli/Dockerfile | 41 | ||||
| -rw-r--r-- | README.md | 3 |
2 files changed, 43 insertions, 1 deletions
diff --git a/0.3.3/cli/Dockerfile b/0.3.3/cli/Dockerfile new file mode 100644 index 0000000..ea8bcf3 --- /dev/null +++ b/0.3.3/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 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 \ + && 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.3.3 +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 libduktape205 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"] @@ -32,7 +32,8 @@ It will then host a new server and load the saved game `mypark.sv6` located in t v0.2.5 onwards are based on Ubuntu 20.04 (amd64). v0.2.4 and v0.2.3 use Ubuntu 19.04 (amd64), previous tags are based on Ubuntu 18.04 (amd64). - [`develop` (*develop/cli/Dockerfile*)](https://github.com/OpenRCT2/openrct2-docker/blob/master/develop/cli/Dockerfile) -- [`0.3.2`, `latest` (*0.3.2/cli/Dockerfile*)](https://github.com/OpenRCT2/openrct2-docker/blob/master/0.3.2/cli/Dockerfile) +- [`0.3.3`, `latest` (*0.3.3/cli/Dockerfile*)](https://github.com/OpenRCT2/openrct2-docker/blob/master/0.3.3/cli/Dockerfile) +- [`0.3.2` (*0.3.2/cli/Dockerfile*)](https://github.com/OpenRCT2/openrct2-docker/blob/master/0.3.2/cli/Dockerfile) - [`0.3.1` (*0.3.1/cli/Dockerfile*)](https://github.com/OpenRCT2/openrct2-docker/blob/master/0.3.1/cli/Dockerfile) - [`0.3.0` (*0.3.0/cli/Dockerfile*)](https://github.com/OpenRCT2/openrct2-docker/blob/master/0.3.0/cli/Dockerfile) - [`0.2.6` (*0.2.6/cli/Dockerfile*)](https://github.com/OpenRCT2/openrct2-docker/blob/master/0.2.6/cli/Dockerfile) |
