FROM alpine:latest ENV OPENTTD_JGR_VERSION=0.65.3 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 # Build the source WORKDIR /openttd/source RUN mkdir build && cd build && \ cmake .. -DCMAKE_BUILD_TYPE=Release && \ make -j$(nproc) WORKDIR /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 COPY start.sh /start.sh RUN chmod +x /start.sh CMD ["/start.sh"]