Update healthcheck to work with PORT variable
This commit is contained in:
1 parent
fb845c3e03
commit
36d1a9c738
2 files changed
+8
-4
No files matched your search
+3
-2
@@ -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"]
|
||||
Reference in new issue
Block a user