Update Dockerfile-steam

Move steam_guard ARG for more build cache
This commit is contained in:
Eduardo Ochetski Hellas 2024-04-30 09:44:30 -03:00 committed by GitHub
parent 9d5441aa52
commit 5254a5d086
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,7 +4,6 @@ FROM jlesage/baseimage-gui:debian-11
ARG STEAM_USER ARG STEAM_USER
ARG STEAM_PASS ARG STEAM_PASS
ARG SRCDS_APPID # Steam appId ARG SRCDS_APPID # Steam appId
ARG STEAM_GUARD
# Set the name of the application. # Set the name of the application.
ENV APP_NAME="StardewValley" ENV APP_NAME="StardewValley"
@ -25,6 +24,10 @@ RUN wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
tar -xzvf steamcmd.tar.gz -C /data/steamcmd && \ tar -xzvf steamcmd.tar.gz -C /data/steamcmd && \
cd /data/steamcmd cd /data/steamcmd
## Don't set the arg earlier, if you need to rebuild the container
## it will cache up to here when you change the ENV VAR
ARG STEAM_GUARD
RUN chown -R 1000:1000 /data && \ RUN chown -R 1000:1000 /data && \
export HOME=/data && \ export HOME=/data && \
/data/steamcmd/steamcmd.sh +force_install_dir /data/Stardew +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_GUARD} +app_update ${SRCDS_APPID} validate +quit /data/steamcmd/steamcmd.sh +force_install_dir /data/Stardew +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_GUARD} +app_update ${SRCDS_APPID} validate +quit