From 4f34b40dd60591c2a99b5e85a7c119970f708df5 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Mon, 29 Sep 2025 01:57:09 +0300 Subject: [PATCH] Refactor health check command in Dockerfile for simplified health monitoring --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8b85089..03795c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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;"]