From 090eb098c82b2dabad59f3e9b972f1ca7a74f40f Mon Sep 17 00:00:00 2001 From: "Carlos M. Martinez" Date: Mon, 19 Feb 2024 15:04:33 -0500 Subject: [PATCH 1/4] Added default home --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 748834989..de6796dc3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -64,7 +64,8 @@ RUN case ${TARGETARCH} in \ && chmod +x supercronic \ && mv supercronic /usr/local/bin/supercronic -ENV PORT= \ +ENV HOME=/home/steam \ + PORT= \ PUID=1000 \ PGID=1000 \ PLAYERS= \ @@ -110,9 +111,9 @@ RUN chmod +x /home/steam/server/*.sh && \ WORKDIR /home/steam/server RUN touch rcon.yaml crontab && \ - chmod o+w rcon.yaml crontab && \ - chown steam:steam -R /home/steam && \ - chmod -R o+w /home/steam/steamcmd + mkdir -p /home/steam/Steam/package && \ + chmod o+w rcon.yaml crontab /home/steam/Steam/package && \ + chown steam:steam -R /home/steam HEALTHCHECK --start-period=5m \ CMD pgrep "PalServer-Linux" > /dev/null || exit 1 From ee5e037b47117fa4f4b34fbb131ab17fd10f148b Mon Sep 17 00:00:00 2001 From: "Carlos M. Martinez" Date: Mon, 19 Feb 2024 15:18:16 -0500 Subject: [PATCH 2/4] Deleting /tmp/dumps --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index de6796dc3..84f0bfb51 100644 --- a/Dockerfile +++ b/Dockerfile @@ -112,6 +112,7 @@ RUN chmod +x /home/steam/server/*.sh && \ WORKDIR /home/steam/server RUN touch rcon.yaml crontab && \ mkdir -p /home/steam/Steam/package && \ + rm -rf /tmp/dumps && \ chmod o+w rcon.yaml crontab /home/steam/Steam/package && \ chown steam:steam -R /home/steam From 5e02039c9bf15436b8fe099a17bbfa1a72638b21 Mon Sep 17 00:00:00 2001 From: Thijs van Loef Date: Mon, 19 Feb 2024 21:58:56 +0100 Subject: [PATCH 3/4] change server folder permissions --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 84f0bfb51..9bf6b4b5d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -114,7 +114,7 @@ RUN touch rcon.yaml crontab && \ mkdir -p /home/steam/Steam/package && \ rm -rf /tmp/dumps && \ chmod o+w rcon.yaml crontab /home/steam/Steam/package && \ - chown steam:steam -R /home/steam + chown steam:steam -R /home/steam/server HEALTHCHECK --start-period=5m \ CMD pgrep "PalServer-Linux" > /dev/null || exit 1 From cd3422fdc6b2f57ee63cc9b778010c08a9073ec0 Mon Sep 17 00:00:00 2001 From: "Carlos M. Martinez" Date: Mon, 19 Feb 2024 16:00:49 -0500 Subject: [PATCH 4/4] Added chown for /home/steam/Steam/package --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 9bf6b4b5d..8fc134d0f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -112,6 +112,7 @@ RUN chmod +x /home/steam/server/*.sh && \ WORKDIR /home/steam/server RUN touch rcon.yaml crontab && \ mkdir -p /home/steam/Steam/package && \ + chown steam:steam /home/steam/Steam/package && \ rm -rf /tmp/dumps && \ chmod o+w rcon.yaml crontab /home/steam/Steam/package && \ chown steam:steam -R /home/steam/server