fix(infra): chown .next dir in hub Dockerfile for runtime permissions
This commit is contained in:
1 parent
bd9cc1f4c7
commit
69cae1e73e
1 file changed
+1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user