diff --git a/Dockerfile b/Dockerfile index bdf7133..6b5b13b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,10 @@ RUN dotnet publish "./line-gestao-api.csproj" -c Release -o /app/publish /p:UseA FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final WORKDIR /app +RUN apt-get update \ + && apt-get install -y --no-install-recommends curl \ + && rm -rf /var/lib/apt/lists/* + ENV ASPNETCORE_URLS=http://+:8080 ENV ASPNETCORE_ENVIRONMENT=Production diff --git a/docker-compose.yml b/docker-compose.yml index bcbe69d..e72ce42 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -37,7 +37,7 @@ services: Seed__AdminPassword: ${SEED_ADMIN_PASSWORD:?SEED_ADMIN_PASSWORD is required} Cors__AllowedOrigins__0: ${FRONTEND_PUBLIC_URL:?FRONTEND_PUBLIC_URL is required} healthcheck: - test: ["CMD", "wget", "--spider", "-q", "http://localhost:8080/health"] + test: ["CMD", "curl", "-fsS", "http://localhost:8080/health"] interval: 20s timeout: 5s retries: 10