Skip to content

Commit aa41ffb

Browse files
committed
Create image for v0.4.24
1 parent 8bc8322 commit aa41ffb

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

0.4.24/cli/Dockerfile

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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.24
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 graphics \
15+
&& ninja -k0 install \
16+
&& rm /openrct2-install/usr/lib/libopenrct2.a
17+
18+
# Build runtime image
19+
FROM ubuntu:24.04
20+
# Install OpenRCT2
21+
COPY --from=build-env /openrct2-install /openrct2-install
22+
RUN apt-get update \
23+
&& apt-get install --no-install-recommends -y rsync ca-certificates libpng16-16 libzip4 libcurl4 libfreetype6 libfontconfig1 libicu74 \
24+
&& rm -rf /var/lib/apt/lists/* \
25+
&& rsync -a /openrct2-install/* / \
26+
&& rm -rf /openrct2-install \
27+
&& openrct2-cli --version
28+
29+
# Set up ordinary user
30+
RUN useradd -m openrct2
31+
USER openrct2
32+
WORKDIR /home/openrct2
33+
EXPOSE 11753
34+
35+
# Test run and scan
36+
RUN openrct2-cli --version \
37+
&& openrct2-cli scan-objects
38+
39+
# Done
40+
ENTRYPOINT ["openrct2-cli"]

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ It will then host a new server and load the saved game `mypark.sv6` located in t
4141
All builds use the `amd64` architecture.
4242

4343
- [`develop` (*develop/cli/Dockerfile*)](https://github.com/OpenRCT2/openrct2-docker/blob/master/develop/cli/Dockerfile)
44-
- [`0.4.23`, `latest` (*0.4.23/cli/Dockerfile*)](https://github.com/OpenRCT2/openrct2-docker/blob/master/0.4.23/cli/Dockerfile)
44+
- [`0.4.24`, `latest` (*0.4.24/cli/Dockerfile*)](https://github.com/OpenRCT2/openrct2-docker/blob/master/0.4.24/cli/Dockerfile)
45+
- [`0.4.23` (*0.4.23/cli/Dockerfile*)](https://github.com/OpenRCT2/openrct2-docker/blob/master/0.4.23/cli/Dockerfile)
4546
- [`0.4.22`, (*0.4.22/cli/Dockerfile*)](https://github.com/OpenRCT2/openrct2-docker/blob/master/0.4.22/cli/Dockerfile)
4647
- [`0.4.21`, (*0.4.21/cli/Dockerfile*)](https://github.com/OpenRCT2/openrct2-docker/blob/master/0.4.21/cli/Dockerfile)
4748
- [`0.4.20`, (*0.4.20/cli/Dockerfile*)](https://github.com/OpenRCT2/openrct2-docker/blob/master/0.4.20/cli/Dockerfile)

0 commit comments

Comments
 (0)