Skip to content
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
16 changes: 7 additions & 9 deletions Dockerfile.steamcmd
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 && \
Expand Down
Loading