Chown data.db to astro user to fix readonly database error

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Kunthawat Greethong
2026-04-29 18:13:19 +07:00
parent 4cda67324c
commit f5b402f272

View File

@@ -31,6 +31,8 @@ COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/dist ./dist COPY --from=builder /app/dist ./dist
COPY --from=builder /app/data.db ./data.db COPY --from=builder /app/data.db ./data.db
RUN chown astro:astro /app/data.db
EXPOSE 4321 EXPOSE 4321
CMD ["node", "./dist/server/entry.mjs"] CMD ["node", "./dist/server/entry.mjs"]