replace wget with curl for docker healthchecks

This commit is contained in:
skidoodle 2024-12-30 17:36:10 +01:00
parent e5d1008e59
commit 8e37da9463
Signed by: albert
GPG key ID: A06E3070D7D55BF2

View file

@ -56,7 +56,7 @@ USER nextjs
EXPOSE 3000
ENV PORT 3000
ENV HOSTNAME "0.0.0.0"
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD [ "wget", "-q0", "http://localhost:3000/health" ]
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD [ "curl", "-f", "http://localhost:3000/health" ]
# Run the nextjs app
CMD ["node", "server.js"]