-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (24 loc) · 1009 Bytes
/
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
FROM jammsen/base:wine-stable-debian-bullseye
LABEL org.opencontainers.image.authors="Sebastian Schmidt"
LABEL org.opencontainers.image.source="https://github.com/jammsen/docker-sons-of-the-forest-dedicated-server"
ENV WINEPREFIX=/winedata/WINE64 \
WINEARCH=win64 \
DISPLAY=:1.0 \
TIMEZONE=Europe/Berlin \
DEBIAN_FRONTEND=noninteractive \
PUID=0 \
PGID=0 \
ALWAYS_UPDATE_ON_START=1 \
USERDATA_PATH=/sonsoftheforest/userdata
VOLUME ["/sonsoftheforest", "/steamcmd", "/winedata"]
EXPOSE 8766/udp 27016/udp 9700/udp
RUN dpkg --add-architecture i386 \
&& apt-get update \
&& apt-get dist-upgrade -y \
&& apt-get install -y --no-install-recommends --no-install-suggests lib32gcc-s1 nano winbind xvfb \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY . ./
RUN ln -snf /usr/share/zoneinfo/$TIMEZONE /etc/localtime \
&& echo $TIMEZONE > /etc/timezone \
&& chmod +x /usr/bin/steamcmdinstaller.sh /usr/bin/servermanager.sh
CMD ["servermanager.sh"]