fix(infra): chown .next dir in hub Dockerfile for runtime permissions

This commit is contained in:
asepharyana
2026-07-23 07:32:59 +07:00
parent bd9cc1f4c7
commit 69cae1e73e
+1
View File
@@ -14,6 +14,7 @@ COPY --from=builder /app/.next ./.next
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/public ./public
COPY --from=builder /app/package.json ./
RUN rm -rf .next/cache && chown -R appuser:appgroup .next
USER appuser
EXPOSE 3000
ENV PORT=3000 NODE_ENV=production