From fbc3a788e0c0ca974ecee3a52c88b640629bf036 Mon Sep 17 00:00:00 2001 From: "Marco Emilio \"sphakka\" Poleggi" <marcoep@ieee.org> Date: Tue, 7 Jan 2025 10:45:23 +0100 Subject: [PATCH] Fix backend/Dockerfile: added chown /app for correct log file handling Signed-off-by: Marco Emilio "sphakka" Poleggi <marcoep@ieee.org> --- Application/backend/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Application/backend/Dockerfile b/Application/backend/Dockerfile index 03e53c4..84fe76c 100644 --- a/Application/backend/Dockerfile +++ b/Application/backend/Dockerfile @@ -20,6 +20,8 @@ COPY . . # Create a non-root user RUN addgroup -S appgroup && adduser -S appuser -G appgroup +RUN chown -R appuser:appgroup /app + USER appuser # Expose the port the app runs on -- GitLab