From 5254a5d086a7191cf38c7f4ae6bf6a48ee89d917 Mon Sep 17 00:00:00 2001 From: Eduardo Ochetski Hellas Date: Tue, 30 Apr 2024 09:44:30 -0300 Subject: [PATCH] Update Dockerfile-steam Move steam_guard ARG for more build cache --- docker/Dockerfile-steam | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile-steam b/docker/Dockerfile-steam index d2357a7..13287c7 100644 --- a/docker/Dockerfile-steam +++ b/docker/Dockerfile-steam @@ -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