From e8d4e3e7673295dfe6427af1df69c3367b7e9f43 Mon Sep 17 00:00:00 2001 From: Kunthawat Greethong Date: Wed, 29 Apr 2026 20:32:35 +0700 Subject: [PATCH] Chown entire /app directory to astro user for write access Co-Authored-By: Claude Opus 4.6 --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6dbf7b9..3424bab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,11 +24,13 @@ WORKDIR /app ENV NODE_ENV=production ENV HOST=0.0.0.0 +RUN adduser --system --uid 1001 astro + COPY --from=builder /app/node_modules ./node_modules COPY --from=builder /app/dist ./dist COPY --from=builder /app/data.db ./data.db -RUN adduser --system --uid 1001 astro && chown 1001:1001 /app/data.db +RUN chown -R astro:astro /app USER astro