Update Dockerfile-steam
Move steam_guard ARG for more build cache
This commit is contained in:
parent
9d5441aa52
commit
5254a5d086
@ -4,7 +4,6 @@ FROM jlesage/baseimage-gui:debian-11
|
||||
ARG STEAM_USER
|
||||
ARG STEAM_PASS
|
||||
ARG SRCDS_APPID # Steam appId
|
||||
ARG STEAM_GUARD
|
||||
|
||||
# Set the name of the application.
|
||||
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 && \
|
||||
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 && \
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user