Skip to content

Commit 5387921

Browse files
committed
Create image for v0.4.20
1 parent 2d208cb commit 5387921

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

0.4.20/cli/Dockerfile

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Build OpenRCT2
2+
FROM ubuntu:24.04 AS build-env
3+
ENV DEBIAN_FRONTEND=noninteractive
4+
RUN apt-get update \
5+
&& 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 \
6+
&& rm -rf /var/lib/apt/lists/*
7+
8+
ARG OPENRCT2_REF=v0.4.20
9+
WORKDIR /openrct2
10+
RUN git -c http.sslVerify=false clone --depth 1 -b $OPENRCT2_REF https://github.com/OpenRCT2/OpenRCT2 . \
11+
&& mkdir build \
12+
&& cd build \
13+
&& cmake .. -G Ninja -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=/openrct2-install/usr -DDISABLE_GUI=ON -DENABLE_HEADERS_CHECK=OFF \
14+
&& ninja -k0 install \
15+
&& rm /openrct2-install/usr/lib/libopenrct2.a \
16+
# HACK due to issue in cmakelists, move content from cli
17+
&& mv /openrct2-install/usr/share/openrct2-cli/* /openrct2-install/usr/share/openrct2 \
18+
&& rm -rf /openrct2-install/usr/share/openrct2-cli
19+
20+
# Build runtime image
21+
FROM ubuntu:24.04
22+
# Install OpenRCT2
23+
COPY --from=build-env /openrct2-install /openrct2-install
24+
RUN apt-get update \
25+
&& apt-get install --no-install-recommends -y rsync ca-certificates libpng16-16 libzip4 libcurl4 libfreetype6 libfontconfig1 libicu74 \
26+
&& rm -rf /var/lib/apt/lists/* \
27+
&& rsync -a /openrct2-install/* / \
28+
&& rm -rf /openrct2-install \
29+
&& openrct2-cli --version
30+
31+
# Set up ordinary user
32+
RUN useradd -m openrct2
33+
USER openrct2
34+
WORKDIR /home/openrct2
35+
EXPOSE 11753
36+
37+
# Test run and scan
38+
RUN openrct2-cli --version \
39+
&& openrct2-cli scan-objects
40+
41+
# Done
42+
ENTRYPOINT ["openrct2-cli"]

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ It will then host a new server and load the saved game `mypark.sv6` located in t
3232
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).
3333

3434
- [`develop` (*develop/cli/Dockerfile*)](https://github.com/OpenRCT2/openrct2-docker/blob/master/develop/cli/Dockerfile)
35-
- [`0.4.19.1`, `latest` (*0.4.13/cli/Dockerfile*)](https://github.com/OpenRCT2/openrct2-docker/blob/master/0.4.19.1/cli/Dockerfile)
35+
- [`0.4.20`, `latest` (*0.4.13/cli/Dockerfile*)](https://github.com/OpenRCT2/openrct2-docker/blob/master/0.4.20/cli/Dockerfile)
36+
- [`0.4.19.1` (*0.4.13/cli/Dockerfile*)](https://github.com/OpenRCT2/openrct2-docker/blob/master/0.4.19.1/cli/Dockerfile)
3637
- [`0.4.19`, (*0.4.13/cli/Dockerfile*)](https://github.com/OpenRCT2/openrct2-docker/blob/master/0.4.19/cli/Dockerfile)
3738
- [`0.4.18`, (*0.4.13/cli/Dockerfile*)](https://github.com/OpenRCT2/openrct2-docker/blob/master/0.4.18/cli/Dockerfile)
3839
- [`0.4.17`, (*0.4.13/cli/Dockerfile*)](https://github.com/OpenRCT2/openrct2-docker/blob/master/0.4.17/cli/Dockerfile)

0 commit comments

Comments
 (0)