Skip to content

Commit

Permalink
Update base image to Ubuntu 22.04 (#184)
Browse files Browse the repository at this point in the history
* Update base image to Ubuntu 22.04 LTS

* Reduce launch logging errors

/tmp/dumps has been added to steam ownership, which SteamCMD uses for
storing dumps when issues occur. This is mainly to silence the ownership
error in the logs.

xdg-user-dirs has been added to the installed packages, as FactoryGame
server calls xdg-user-dir during initialization. These paths are not
used by the game, and the change is only to silence error messages.
  • Loading branch information
Stealthii authored Jun 9, 2023
1 parent c387dde commit befc216
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM steamcmd/steamcmd:ubuntu-18
FROM steamcmd/steamcmd:ubuntu-22

RUN set -x \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y gosu --no-install-recommends\
&& DEBIAN_FRONTEND=noninteractive apt-get install -y gosu xdg-user-dirs --no-install-recommends\
&& rm -rf /var/lib/apt/lists/* \
&& useradd -ms /bin/bash steam \
&& gosu nobody true
Expand Down
4 changes: 2 additions & 2 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,5 @@ else
usermod -u "$PUID" steam
fi

chown -R "$PUID":"$PGID" /config /home/steam
exec gosu "$USER" "/home/steam/run.sh" "$@"
chown -R "$PUID":"$PGID" /config /home/steam /tmp/dumps
exec gosu "$USER" "/home/steam/run.sh" "$@"

0 comments on commit befc216

Please sign in to comment.