diff --git a/DrSousan.Api/Dockerfile b/DrSousan.Api/Dockerfile index a5ded5f..35835ee 100644 --- a/DrSousan.Api/Dockerfile +++ b/DrSousan.Api/Dockerfile @@ -37,9 +37,7 @@ VOLUME ["/data", "/app/wwwroot/uploads"] ENV ASPNETCORE_URLS=http://+:8080 ENV ASPNETCORE_ENVIRONMENT=Production -RUN apt-get update -qq && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/* - HEALTHCHECK --interval=15s --timeout=10s --start-period=30s --retries=3 \ - CMD curl -f http://localhost:8080/healthz || exit 1 + CMD bash -c 'echo > /dev/tcp/localhost/8080' || exit 1 ENTRYPOINT ["dotnet", "DrSousan.Api.dll"]