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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
47 changes: 25 additions & 22 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,7 @@
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/

WORKDIR /config

ARG VERSION="DEV"
ENV VERSION=$VERSION
LABEL version=$VERSION
FROM steamcmd/steamcmd:ubuntu-24

ENV AUTOSAVENUM="5" \
DEBIAN_FRONTEND="noninteractive" \
DEBUG="false" \
DISABLESEASONALEVENTS="false" \
GAMECONFIGDIR="/config/gamefiles/FactoryGame/Saved" \
Expand All @@ -40,8 +21,30 @@ ENV AUTOSAVENUM="5" \
TIMEOUT="30" \
VMOVERRIDE="false"

# hadolint ignore=DL3008
RUN set -x \
&& apt-get update \
&& apt-get install -y gosu xdg-user-dirs curl jq tzdata --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& 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 \
&& chown steam:steam /config

COPY init.sh healthcheck.sh /
COPY --chown=steam:steam run.sh /home/steam/

WORKDIR /config

ARG VERSION="DEV"
ENV VERSION=$VERSION
LABEL version=$VERSION

STOPSIGNAL SIGINT

EXPOSE 7777/udp 7777/tcp

ENTRYPOINT [ "/init.sh" ]
ENTRYPOINT [ "/init.sh" ]