Skip to content

Commit 0768caf

Browse files
committed
Image for release v0.4.23
1 parent 899fb64 commit 0768caf

File tree

2 files changed

+42
-2
lines changed

2 files changed

+42
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
# List of tags to build and upload, remember to update this
14-
tag: [0.4.22]
14+
tag: [0.4.23]
1515
env:
1616
dockertag: ${{ matrix.tag }}
1717
dockerimg: openrct2/openrct2-cli
18-
dockerlst: 0.4.22
18+
dockerlst: 0.4.23
1919
steps:
2020
- name: Checkout
2121
uses: actions/checkout@v4

0.4.23/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=develop
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"]

0 commit comments

Comments
 (0)