initial import

This commit is contained in:
Fábio André Damas 2025-06-02 11:11:05 +00:00
commit d22055dd9a
3 changed files with 64 additions and 0 deletions

42
Dockerfile Normal file
View file

@ -0,0 +1,42 @@
FROM debian:bookworm-slim
ENV DEBIAN_FRONTEND=noninteractive
ENV LANG=C.UTF-8
ENV OPENTTD_JGR_VERSION=0.65.3
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
git \
libsdl2-dev \
libsdl2-mixer-dev \
libfontconfig-dev \
libicu-dev \
libpng-dev \
liblzma-dev \
liblzo2-dev \
libzstd-dev \
pkg-config \
wget \
unzip \
&& apt-get clean
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"]