From 9f97039238c21846076cd11660c8e007dfb9683a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Neves?= Date: Sun, 21 Jun 2026 20:05:54 +0000 Subject: [PATCH] docs(deployment): fix HEALTHCHECK example to install curl in Dockerfile The HEALTHCHECK example used curl to probe the container, but the base nginx:alpine image does not include curl by default. Added a RUN command to install curl before the HEALTHCHECK, preventing failures when users follow the example verbatim. --- DEPLOYMENT_DOCKER.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/DEPLOYMENT_DOCKER.md b/DEPLOYMENT_DOCKER.md index 45802f9..fd08c54 100644 --- a/DEPLOYMENT_DOCKER.md +++ b/DEPLOYMENT_DOCKER.md @@ -186,6 +186,9 @@ Typical size: ~25-30 MB Add health checks to your container: ```dockerfile +# Install curl for health checks (nginx:alpine doesn't include it by default) +RUN apk add --no-cache curl + HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ CMD curl -f http://localhost/ || exit 1 ```