Skip to content

Commit

Permalink
Create image for v0.4.19.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Gymnasiast committed Feb 3, 2025
1 parent 7b9f40a commit 2d208cb
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
42 changes: 42 additions & 0 deletions 0.4.19.1/cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Build OpenRCT2
FROM ubuntu:24.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 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/*

ARG OPENRCT2_REF=v0.4.19.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 -DDISABLE_GUI=ON -DENABLE_HEADERS_CHECK=OFF \
&& ninja -k0 install \
&& 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:24.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 libzip4 libcurl4 libfreetype6 libfontconfig1 libicu74 \
&& 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"]
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.4.19`, `latest` (*0.4.13/cli/Dockerfile*)](https://github.com/OpenRCT2/openrct2-docker/blob/master/0.4.19/cli/Dockerfile)
- [`0.4.19.1`, `latest` (*0.4.13/cli/Dockerfile*)](https://github.com/OpenRCT2/openrct2-docker/blob/master/0.4.19.1/cli/Dockerfile)
- [`0.4.19`, (*0.4.13/cli/Dockerfile*)](https://github.com/OpenRCT2/openrct2-docker/blob/master/0.4.19/cli/Dockerfile)
- [`0.4.18`, (*0.4.13/cli/Dockerfile*)](https://github.com/OpenRCT2/openrct2-docker/blob/master/0.4.18/cli/Dockerfile)
- [`0.4.17`, (*0.4.13/cli/Dockerfile*)](https://github.com/OpenRCT2/openrct2-docker/blob/master/0.4.17/cli/Dockerfile)
- [`0.4.16`, (*0.4.13/cli/Dockerfile*)](https://github.com/OpenRCT2/openrct2-docker/blob/master/0.4.16/cli/Dockerfile)
Expand Down

0 comments on commit 2d208cb

Please sign in to comment.