From 7b07775845f70971e51f54c0098e5182d87e8779 Mon Sep 17 00:00:00 2001 From: domverse Date: Sat, 28 Feb 2026 14:17:56 +0100 Subject: [PATCH] fix: replace wget with curl in frontend healthcheck nginx:alpine is a minimal image that does not include wget. Install curl explicitly and use curl -f for the healthcheck. Co-Authored-By: Claude Sonnet 4.6 --- flight-comparator/Dockerfile.frontend | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flight-comparator/Dockerfile.frontend b/flight-comparator/Dockerfile.frontend index 72c0a94..90a2713 100644 --- a/flight-comparator/Dockerfile.frontend +++ b/flight-comparator/Dockerfile.frontend @@ -13,7 +13,9 @@ FROM nginx:alpine COPY --from=builder /app/dist /usr/share/nginx/html COPY nginx.conf /etc/nginx/conf.d/default.conf +RUN apk add --no-cache curl + EXPOSE 80 HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \ - CMD wget -qO /dev/null http://localhost/ || exit 1 + CMD curl -f http://localhost/ || exit 1