Skip to content

Commit ffeac26

Browse files
goofball222wolveix
andauthored
Switch to steamcmd/steamcmd:ubuntu-24 (#334)
* Switch to steamcmd/steamcmd:ubuntu-24 Solve for UID & GID 1000 already in use by removing ubuntu user & group. Create steam group and user with PGID and PUID from ENV vars, default 1000. Also adds tzdata package to insure Docker TZ environment variable functions. --------- Co-authored-by: Robert Thomas <[email protected]>
1 parent d324224 commit ffeac26

File tree

1 file changed

+27
-24
lines changed

1 file changed

+27
-24
lines changed

Dockerfile

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,34 @@
1-
FROM steamcmd/steamcmd:ubuntu-22
1+
FROM steamcmd/steamcmd:ubuntu-24
2+
3+
ENV AUTOSAVENUM="5" \
4+
DEBIAN_FRONTEND="noninteractive" \
5+
DEBUG="false" \
6+
DISABLESEASONALEVENTS="false" \
7+
GAMECONFIGDIR="/config/gamefiles/FactoryGame/Saved" \
8+
GAMESAVESDIR="/home/steam/.config/Epic/FactoryGame/Saved/SaveGames" \
9+
LOG="false" \
10+
MAXOBJECTS="2162688" \
11+
MAXPLAYERS="4" \
12+
MAXTICKRATE="30" \
13+
PGID="1000" \
14+
PUID="1000" \
15+
ROOTLESS="false" \
16+
SERVERGAMEPORT="7777" \
17+
SERVERSTREAMING="true" \
18+
SKIPUPDATE="false" \
19+
STEAMAPPID="1690800" \
20+
STEAMBETA="false" \
21+
TIMEOUT="30" \
22+
VMOVERRIDE="false"
223

324
# hadolint ignore=DL3008
425
RUN set -x \
526
&& apt-get update \
6-
&& DEBIAN_FRONTEND=noninteractive apt-get install -y gosu xdg-user-dirs curl jq tzdata --no-install-recommends \
27+
&& apt-get install -y gosu xdg-user-dirs curl jq tzdata --no-install-recommends \
728
&& rm -rf /var/lib/apt/lists/* \
8-
&& useradd -ms /bin/bash steam \
29+
&& userdel ubuntu \
30+
&& groupadd -r steam -g $PGID \
31+
&& useradd -ms /bin/bash --no-log-init -r -u $PUID -g $PGID steam \
932
&& gosu nobody true
1033

1134
RUN mkdir -p /config \
@@ -23,28 +46,8 @@ ARG VERSION="DEV"
2346
ENV VERSION=$VERSION
2447
LABEL version=$VERSION
2548

26-
ENV AUTOSAVENUM="5" \
27-
DEBUG="false" \
28-
DISABLESEASONALEVENTS="false" \
29-
GAMECONFIGDIR="/config/gamefiles/FactoryGame/Saved" \
30-
GAMESAVESDIR="/home/steam/.config/Epic/FactoryGame/Saved/SaveGames" \
31-
LOG="false" \
32-
MAXOBJECTS="2162688" \
33-
MAXPLAYERS="4" \
34-
MAXTICKRATE="30" \
35-
PGID="1000" \
36-
PUID="1000" \
37-
ROOTLESS="false" \
38-
SERVERGAMEPORT="7777" \
39-
SERVERSTREAMING="true" \
40-
SKIPUPDATE="false" \
41-
STEAMAPPID="1690800" \
42-
STEAMBETA="false" \
43-
TIMEOUT="30" \
44-
VMOVERRIDE="false"
45-
4649
STOPSIGNAL SIGINT
4750

4851
EXPOSE 7777/udp 7777/tcp
4952

50-
ENTRYPOINT [ "/init.sh" ]
53+
ENTRYPOINT [ "/init.sh" ]

0 commit comments

Comments
 (0)