openttd-jgr/Dockerfile
skkeeper 8de686c686
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Update to version v0.67.1
2025-10-26 12:28:06 +00:00

54 lines
1.1 KiB
Docker

FROM alpine:latest AS builder
ENV OPENTTD_JGR_VERSION=0.67.1
RUN apk add --no-cache \
git \
build-base \
cmake \
sdl2-dev \
sdl2_mixer-dev \
fontconfig-dev \
icu-dev \
libpng-dev \
xz-dev \
lzo-dev \
zstd-dev \
wget \
unzip \
bash \
curl \
pkgconfig \
freetype-dev \
bzip2-dev
WORKDIR /openttd
RUN git clone --depth 1 --branch jgrpp-$OPENTTD_JGR_VERSION https://github.com/JGRennison/OpenTTD-patches.git source
WORKDIR /openttd/source
RUN mkdir build && cd build && \
cmake .. -DCMAKE_BUILD_TYPE=Release -DOPTION_DEDICATED=ON && \
make -j$(nproc)
FROM alpine:latest
WORKDIR /openttd
COPY --from=builder /openttd/source/build /openttd
RUN mkdir -p /root/.openttd/baseset && \
wget -q https://cdn.openttd.org/opengfx-releases/7.1/opengfx-7.1-all.zip && \
unzip opengfx-7.1-all.zip -d /root/.openttd/baseset && \
rm opengfx-7.1-all.zip
RUN apk add --no-cache \
sdl2-dev \
fontconfig-dev \
icu-dev \
lzo-dev
COPY start.sh /start.sh
RUN chmod +x /start.sh
CMD ["/start.sh"]