-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (27 loc) · 1.3 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM ghcr.io/linuxserver/baseimage-kasmvnc:debianbullseye
# set version label
ARG OPENTTD_VERSION="13.4"
ARG OPENGFX_VERSION="7.1"
RUN apt-get update -y && \
echo "**** install Open TTD ****" && \
DEBIAN_FRONTEND=noninteractive && \
apt-get install -y --no-install-recommends dumb-init wget unzip ca-certificates xz-utils
RUN wget -q -O /tmp/openttd.tar.xz https://cdn.openttd.org/openttd-releases/${OPENTTD_VERSION}/openttd-${OPENTTD_VERSION}-linux-generic-amd64.tar.xz
RUN mkdir -p /usr/share/games/ && \
tar -xvf /tmp/openttd.tar.xz -C /usr/share/games/ && \
mv /usr/share/games/openttd* /usr/share/games/openttd && \
rm /tmp/openttd.tar.xz && \
rm -rf /var/lib/apt/lists
RUN wget -q -O /tmp/opengfx-${OPENGFX_VERSION}.zip https://cdn.openttd.org/opengfx-releases/${OPENGFX_VERSION}/opengfx-${OPENGFX_VERSION}-all.zip && \
unzip /tmp/opengfx-${OPENGFX_VERSION}.zip -d /tmp && \
cd /usr/share/games/openttd/baseset/ && \
tar -xf /tmp/opengfx-${OPENGFX_VERSION}.tar && \
rm -rf /tmp/opengfx-*.tar /tmp/opengfx-*.zip
# add local files
COPY /root /
# ports and volumes
EXPOSE 3000
LABEL org.opencontainers.image.source=https://github.com/rogerrum/docker-openttd
LABEL org.opencontainers.image.description="OpenTTD"
LABEL org.opencontainers.image.licenses=Apache-2.0
VOLUME /config