Fix healthcheck to validate full stack through Nginx
All checks were successful
Cloud Node Container / Build-and-Push (18) (push) Successful in 2m15s
Cloud Node Container / Build-and-Push (20) (push) Successful in 4m12s
Cloud Node Container / Build-and-Push (22) (push) Successful in 1m58s

Changed healthcheck from hitting Node.js directly on port 3000/ping to
going through Nginx on port 80, ensuring the entire stack is validated.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-16 07:57:10 -07:00
parent 566cdb5276
commit 821db4873e

View File

@@ -36,6 +36,6 @@ COPY ./examples/ /examples/
RUN echo "15 */12 * * * root /scripts/log-rotate.sh" >> /etc/crontab
HEALTHCHECK --interval=30s --timeout=5s --start-period=60s --retries=3 \
CMD wget --spider -q http://localhost:3000/ping || exit 1
CMD wget --spider -q http://localhost/ || exit 1
ENTRYPOINT [ "/scripts/entrypoint.sh" ]