Skip to content

Commit fb3ac75

Browse files
authored
fix: preserve steamcmd runtime files (#86)
1 parent 3a92f39 commit fb3ac75

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

Dockerfile.steamcmd

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ ARG VERSION=latest
22
FROM artifacts.druid.gg/druid-team/druid:${VERSION} AS base
33
FROM gameservermanagers/steamcmd:ubuntu-24.04
44

5-
RUN mkdir -p /tmp/steamcmd-seed/linux32 /tmp/steamcmd-seed/linux64 && \
6-
cp /home/steam/.local/share/Steam/steamcmd/linux32/steamclient.so /tmp/steamcmd-seed/linux32/steamclient.so && \
7-
cp /home/steam/.local/share/Steam/steamcmd/linux64/steamclient.so /tmp/steamcmd-seed/linux64/steamclient.so && \
8-
test -s /tmp/steamcmd-seed/linux32/steamclient.so && \
9-
test -s /tmp/steamcmd-seed/linux64/steamclient.so
5+
RUN mkdir -p /tmp/steamcmd-seed && \
6+
cp -a /home/steam/.local/share/Steam/steamcmd /tmp/steamcmd-seed/steamcmd && \
7+
test -s /tmp/steamcmd-seed/steamcmd/steamcmd.sh && \
8+
test -s /tmp/steamcmd-seed/steamcmd/linux32/steamclient.so && \
9+
test -s /tmp/steamcmd-seed/steamcmd/linux64/steamclient.so
1010

1111
RUN if id -u steam >/dev/null 2>&1; then echo "Removing steam user from base image"; userdel -r steam || true; else echo "steam user not present"; fi
1212

@@ -54,12 +54,10 @@ RUN groupadd -g $GID -o druid
5454
RUN useradd -m -u $UID -g $GID -o -s /bin/bash druid
5555

5656
RUN mkdir -p \
57-
/home/druid/.local/share/Steam/steamcmd/linux32 \
58-
/home/druid/.local/share/Steam/steamcmd/linux64 \
57+
/home/druid/.local/share/Steam \
5958
/home/druid/.steam/sdk32 \
6059
/home/druid/.steam/sdk64 && \
61-
cp /tmp/steamcmd-seed/linux32/steamclient.so /home/druid/.local/share/Steam/steamcmd/linux32/steamclient.so && \
62-
cp /tmp/steamcmd-seed/linux64/steamclient.so /home/druid/.local/share/Steam/steamcmd/linux64/steamclient.so && \
60+
cp -a /tmp/steamcmd-seed/steamcmd /home/druid/.local/share/Steam/steamcmd && \
6361
ln -sfn /home/druid/.local/share/Steam /home/druid/.steam/root && \
6462
ln -sfn /home/druid/.local/share/Steam /home/druid/.steam/steam && \
6563
ln -sfn /home/druid/.local/share/Steam/steamcmd/linux32/steamclient.so /home/druid/.steam/sdk32/steamclient.so && \

0 commit comments

Comments
 (0)