chore: make app port configurable via PORT env var
This commit is contained in:
+1
-3
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user