From e4bd943de2007eb0a5ee2b13ab9d7a51338d6a08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Schottst=C3=A4dt?= Date: Sun, 7 Jun 2026 21:35:54 +0200 Subject: [PATCH] fix: preserve steamcmd runtime files --- Dockerfile.steamcmd | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/Dockerfile.steamcmd b/Dockerfile.steamcmd index ec6ea66..b40a51c 100644 --- a/Dockerfile.steamcmd +++ b/Dockerfile.steamcmd @@ -2,11 +2,11 @@ ARG VERSION=latest FROM artifacts.druid.gg/druid-team/druid:${VERSION} AS base FROM gameservermanagers/steamcmd:ubuntu-24.04 -RUN mkdir -p /tmp/steamcmd-seed/linux32 /tmp/steamcmd-seed/linux64 && \ - cp /home/steam/.local/share/Steam/steamcmd/linux32/steamclient.so /tmp/steamcmd-seed/linux32/steamclient.so && \ - cp /home/steam/.local/share/Steam/steamcmd/linux64/steamclient.so /tmp/steamcmd-seed/linux64/steamclient.so && \ - test -s /tmp/steamcmd-seed/linux32/steamclient.so && \ - test -s /tmp/steamcmd-seed/linux64/steamclient.so +RUN mkdir -p /tmp/steamcmd-seed && \ + cp -a /home/steam/.local/share/Steam/steamcmd /tmp/steamcmd-seed/steamcmd && \ + test -s /tmp/steamcmd-seed/steamcmd/steamcmd.sh && \ + test -s /tmp/steamcmd-seed/steamcmd/linux32/steamclient.so && \ + test -s /tmp/steamcmd-seed/steamcmd/linux64/steamclient.so 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 @@ -54,12 +54,10 @@ RUN groupadd -g $GID -o druid RUN useradd -m -u $UID -g $GID -o -s /bin/bash druid RUN mkdir -p \ - /home/druid/.local/share/Steam/steamcmd/linux32 \ - /home/druid/.local/share/Steam/steamcmd/linux64 \ + /home/druid/.local/share/Steam \ /home/druid/.steam/sdk32 \ /home/druid/.steam/sdk64 && \ - cp /tmp/steamcmd-seed/linux32/steamclient.so /home/druid/.local/share/Steam/steamcmd/linux32/steamclient.so && \ - cp /tmp/steamcmd-seed/linux64/steamclient.so /home/druid/.local/share/Steam/steamcmd/linux64/steamclient.so && \ + cp -a /tmp/steamcmd-seed/steamcmd /home/druid/.local/share/Steam/steamcmd && \ ln -sfn /home/druid/.local/share/Steam /home/druid/.steam/root && \ ln -sfn /home/druid/.local/share/Steam /home/druid/.steam/steam && \ ln -sfn /home/druid/.local/share/Steam/steamcmd/linux32/steamclient.so /home/druid/.steam/sdk32/steamclient.so && \