From e73d47a8757df49e9d07d8966a6d0a0c03abee76 Mon Sep 17 00:00:00 2001 From: "soroush.asadi" Date: Tue, 2 Jun 2026 16:03:08 +0330 Subject: [PATCH] =?UTF-8?q?fix:=20remove=20apt-get=20curl=20install=20?= =?UTF-8?q?=E2=80=94=20use=20bash=20TCP=20health=20check=20instead?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit archive.ubuntu.com is unreachable from the build server, causing apt-get to time out and fail every build. curl was only used for the HEALTHCHECK. Replace with a zero-dependency bash TCP check: bash -c 'echo > /dev/tcp/localhost/8080' No packages needed, no external network access required. Co-Authored-By: Claude Sonnet 4.5 --- DrSousan.Api/Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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"]