From 191f10b8d7b279a630b9b6f87567fe42f8248c1a Mon Sep 17 00:00:00 2001 From: Julien Froidefond Date: Fri, 17 Oct 2025 15:35:30 +0200 Subject: [PATCH] fix: update Dockerfile to create cache directory and adjust ownership for improved security and functionality --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 47926fa..f2c1206 100644 --- a/Dockerfile +++ b/Dockerfile @@ -70,7 +70,8 @@ COPY --from=builder /app/scripts ./scripts # Add non-root user for security RUN addgroup --system --gid 1001 nodejs && \ adduser --system --uid 1001 nextjs && \ - chown -R nextjs:nodejs /app + mkdir -p /app/.cache && \ + chown -R nextjs:nodejs /app /app/.cache USER nextjs