-
-
Notifications
You must be signed in to change notification settings - Fork 155
/
Dockerfile
50 lines (40 loc) · 1.16 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FROM steamcmd/steamcmd:ubuntu-22
# hadolint ignore=DL3008
RUN set -x \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y gosu xdg-user-dirs curl jq tzdata --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& useradd -ms /bin/bash steam \
&& gosu nobody true
RUN mkdir -p /config \
&& chown steam:steam /config
COPY init.sh healthcheck.sh /
COPY --chown=steam:steam run.sh /home/steam/
HEALTHCHECK --timeout=10s --start-period=180s \
CMD bash /healthcheck.sh
WORKDIR /config
ARG VERSION="DEV"
ENV VERSION=$VERSION
LABEL version=$VERSION
ENV AUTOSAVENUM="5" \
DEBUG="false" \
DISABLESEASONALEVENTS="false" \
GAMECONFIGDIR="/config/gamefiles/FactoryGame/Saved" \
GAMESAVESDIR="/home/steam/.config/Epic/FactoryGame/Saved/SaveGames" \
LOG="false" \
MAXOBJECTS="2162688" \
MAXPLAYERS="4" \
MAXTICKRATE="30" \
PGID="1000" \
PUID="1000" \
ROOTLESS="false" \
SERVERGAMEPORT="7777" \
SERVERSTREAMING="true" \
SKIPUPDATE="false" \
STEAMAPPID="1690800" \
STEAMBETA="false" \
TIMEOUT="30" \
VMOVERRIDE="false"
STOPSIGNAL SIGINT
EXPOSE 7777/udp 7777/tcp
ENTRYPOINT [ "/init.sh" ]