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>
This commit is contained in:
Justus 2025-12-08 07:31:43 +01:00 committed by GitHub
parent bf9c8fa508
commit 66e8576384
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"]