Update healthcheck to work with PORT variable

This commit is contained in:
Alex 2022-09-05 22:55:14 +01:00
parent fb845c3e03
commit 36d1a9c738
2 changed files with 8 additions and 4 deletions

View file

@ -54,9 +54,10 @@ COPY --link /public ./public
COPY --link --from=builder /app/.next/standalone ./
COPY --link --from=builder /app/.next/static/ ./.next/static/
EXPOSE 3000
ENV PORT='3000'
HEALTHCHECK --interval=12s --timeout=12s --start-period=30s \
CMD node ./healthcheck.js
EXPOSE 3000
ENV PORT 3000
CMD ["node", "server.js"]