From 6375f4c53c3b6cfbb5689594cb28e68950862a2a Mon Sep 17 00:00:00 2001 From: Leon <82466943+LeonTheDev-io@users.noreply.github.com> Date: Fri, 28 Mar 2025 23:29:16 +0100 Subject: [PATCH] fix(docker): pre-create runtime directories (#607) - Added creation of runtime directories (`/container/user` and `/container/logs`) in the Dockerfile. - Ensures these directories are created with appropriate permissions during image build. - Prevents Docker from auto-creating these directories with root ownership at runtime, avoiding access issues. --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index c4d189b..759a40d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,6 +30,9 @@ RUN mkdir /app \ && chown container:container /app \ && chmod -R 777 /app +RUN mkdir -p /home/container/user /home/container/logs \ + && chown -R container:container /home/container + USER container ENV USER=container \ HOME=/home/container \