File tree Expand file tree Collapse file tree 3 files changed +51
-3
lines changed
Expand file tree Collapse file tree 3 files changed +51
-3
lines changed Original file line number Diff line number Diff 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.18 ]
14+ tag : [0.4.19 ]
1515 env :
1616 dockertag : ${{ matrix.tag }}
1717 dockerimg : openrct2/openrct2-cli
18- dockerlst : 0.4.18
18+ dockerlst : 0.4.19
1919 steps :
2020 - name : Checkout
2121 uses : actions/checkout@v4
Original file line number Diff line number Diff line change 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.19
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" ]
Original file line number Diff line number Diff line change @@ -32,7 +32,13 @@ It will then host a new server and load the saved game `mypark.sv6` located in t
3232v0.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.13 ` , ` latest ` (* 0.4.13/cli/Dockerfile* )] ( https://github.com/OpenRCT2/openrct2-docker/blob/master/0.4.13/cli/Dockerfile )
35+ - [ ` 0.4.19 ` , ` latest ` (* 0.4.13/cli/Dockerfile* )] ( https://github.com/OpenRCT2/openrct2-docker/blob/master/0.4.19/cli/Dockerfile )
36+ - [ ` 0.4.18 ` , (* 0.4.13/cli/Dockerfile* )] ( https://github.com/OpenRCT2/openrct2-docker/blob/master/0.4.18/cli/Dockerfile )
37+ - [ ` 0.4.17 ` , (* 0.4.13/cli/Dockerfile* )] ( https://github.com/OpenRCT2/openrct2-docker/blob/master/0.4.17/cli/Dockerfile )
38+ - [ ` 0.4.16 ` , (* 0.4.13/cli/Dockerfile* )] ( https://github.com/OpenRCT2/openrct2-docker/blob/master/0.4.16/cli/Dockerfile )
39+ - [ ` 0.4.15 ` , (* 0.4.13/cli/Dockerfile* )] ( https://github.com/OpenRCT2/openrct2-docker/blob/master/0.4.15/cli/Dockerfile )
40+ - [ ` 0.4.14 ` , (* 0.4.13/cli/Dockerfile* )] ( https://github.com/OpenRCT2/openrct2-docker/blob/master/0.4.14/cli/Dockerfile )
41+ - [ ` 0.4.13 ` , (* 0.4.13/cli/Dockerfile* )] ( https://github.com/OpenRCT2/openrct2-docker/blob/master/0.4.13/cli/Dockerfile )
3642- [ ` 0.4.12 ` , (* 0.4.12/cli/Dockerfile* )] ( https://github.com/OpenRCT2/openrct2-docker/blob/master/0.4.12/cli/Dockerfile )
3743- [ ` 0.4.11 ` , (* 0.4.11/cli/Dockerfile* )] ( https://github.com/OpenRCT2/openrct2-docker/blob/master/0.4.11/cli/Dockerfile )
3844- [ ` 0.4.10 ` , (* 0.4.10/cli/Dockerfile* )] ( https://github.com/OpenRCT2/openrct2-docker/blob/master/0.4.10/cli/Dockerfile )
You can’t perform that action at this time.
0 commit comments