Chown entire /app directory to astro user for write access

Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
Kunthawat GreethongandClaude Opus 4.6 committed 2026-04-29 20:32:35 +07:00
1 parent 620cfb0371
commit e8d4e3e767
1 file changed
+3 -1
+3 -1
View File
@@ -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