chore: update Dockerfile to explicitly set PORT environment variable to 3002

This commit is contained in:
john kevin asprec
2026-06-16 22:33:09 +08:00
parent 13d1fdfdef
commit 4d5177004c

View File

@@ -14,7 +14,7 @@ RUN apk add --no-cache dumb-init
RUN addgroup --system --gid 1001 nodejs && adduser --system --uid 1001 nextjs RUN addgroup --system --gid 1001 nodejs && adduser --system --uid 1001 nextjs
COPY --from=builder /app/.next/standalone ./ COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static COPY --from=builder /app/.next/static ./.next/static
ENV NODE_ENV=production HOSTNAME=0.0.0.0 ENV NODE_ENV=production HOSTNAME=0.0.0.0 PORT=3002
EXPOSE 3002 EXPOSE 3002
USER nextjs USER nextjs
ENTRYPOINT ["dumb-init", "--"] ENTRYPOINT ["dumb-init", "--"]