From 66e857638417aeb1405f10444669707c8a094c16 Mon Sep 17 00:00:00 2001 From: Justus <15849513+JustAmply@users.noreply.github.com> Date: Mon, 8 Dec 2025 07:31:43 +0100 Subject: [PATCH] Fix healthcheck command to use array syntax (#673) * Fix healthcheck command to use 127.0.0.1 instead of localhost * Re-add timeout to healthcheck Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update Docker healthcheck command Removed the '-t 1' option from the wget command added by Copilot in the Docker healthcheck as it is not supported in the BusyBox build. * Refactor HEALTHCHECK command in Dockerfile to use array syntax --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4881825..138f391 100644 --- a/Dockerfile +++ b/Dockerfile @@ -126,7 +126,7 @@ ENV NODE_ENV=production \ SWAGGER_ENABLED=false HEALTHCHECK --interval=60s --timeout=3s --start-period=10s --retries=2 \ - CMD wget -q -T 3 --spider http://127.0.0.1:3002/api/health || exit 1 + CMD ["wget", "-q", "--spider", "http://127.0.0.1:3002/api/health"] WORKDIR /app/backend ENTRYPOINT ["/app/scripts/docker-entrypoint.sh"]