Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to steamcmd/steamcmd:ubuntu-24 #334

Merged
merged 4 commits into from
Dec 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 27 additions & 24 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,34 @@
FROM steamcmd/steamcmd:ubuntu-22
FROM steamcmd/steamcmd:ubuntu-24

ENV AUTOSAVENUM="5" \
DEBIAN_FRONTEND="noninteractive" \
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"

# 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 \
&& 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 \
&& userdel ubuntu \
&& groupadd -r steam -g $PGID \
&& useradd -ms /bin/bash --no-log-init -r -u $PUID -g $PGID steam \
&& gosu nobody true

RUN mkdir -p /config \
Expand All @@ -23,28 +46,8 @@ 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" ]
ENTRYPOINT [ "/init.sh" ]
Loading