From 438994cc422a439bfc6018dfff21c1a6c079abed Mon Sep 17 00:00:00 2001 From: Lasse Rune Hansen Date: Fri, 5 Jun 2026 12:50:30 +0200 Subject: [PATCH] fix(infra): install curl in runtime image for health checks - Alpine-based aspnet image doesn't include curl - Health check requires curl to test /health endpoint Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- GermanApp/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/GermanApp/Dockerfile b/GermanApp/Dockerfile index 007e911..6c258b5 100644 --- a/GermanApp/Dockerfile +++ b/GermanApp/Dockerfile @@ -36,6 +36,9 @@ FROM build AS publish FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS runtime WORKDIR /app +# Install curl for health checks (Alpine-based image doesn't include it) +RUN apk add --no-cache curl + # Copy published app from publish stage COPY --from=publish /app/publish . @@ -48,7 +51,7 @@ ENV ASPNETCORE_ENVIRONMENT=Production EXPOSE 8080 # Health check -HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ +HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 \ CMD curl -f http://localhost:8080/health || exit 1 # Entry point