chore: make app port configurable via PORT env var

This commit is contained in:
2026-07-08 22:21:51 +02:00
parent 2f757acb9b
commit 92df4e766e
2 changed files with 4 additions and 4 deletions
+1 -3
View File
@@ -34,9 +34,7 @@ COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
USER nextjs
EXPOSE 3000
ENV PORT=3000
ENV HOSTNAME=0.0.0.0
EXPOSE ${PORT:-3000}
CMD ["node", "server.js"]