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
22 changes: 22 additions & 0 deletions Dockerfile.steamcmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ 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 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

COPY --from=base /usr/bin/druid* /usr/bin/
Expand Down Expand Up @@ -47,6 +53,22 @@ ARG GID=1000
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/.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 && \
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 && \
ln -sfn /home/druid/.local/share/Steam/steamcmd/linux64/steamclient.so /home/druid/.steam/sdk64/steamclient.so && \
chown -R druid:druid /home/druid/.local /home/druid/.steam && \
rm -rf /tmp/steamcmd-seed

WORKDIR /home/druid

USER druid

# backward compatibility for lgsm scrolls, please clean this up, but otherwise configs are not found for lgsm!
Expand Down
Loading