Refactor health check command in Dockerfile for simplified health monitoring

This commit is contained in:
Tudor Stanciu 2025-09-29 01:57:09 +03:00
parent 15c080d574
commit 4f34b40dd6

View File

@ -53,7 +53,7 @@ EXPOSE 80
# Health check
HEALTHCHECK --interval=120s --timeout=10s --start-period=60s --retries=3 \
CMD if [ -n "$APP_SUBFOLDER" ]; then curl -f http://localhost/$APP_SUBFOLDER/ || exit 1; else curl -f http://localhost/ || exit 1; fi
CMD curl -f http://localhost/health || exit 1
# Start nginx
CMD ["nginx", "-g", "daemon off;"]