From c64acab1c798bace129d81faec48dda341908b37 Mon Sep 17 00:00:00 2001 From: chaodu-agent Date: Wed, 8 Jul 2026 11:31:36 -0400 Subject: [PATCH] fix: add curl to runtime image for ECS health checks The ghpool container runs on debian:trixie-slim which doesn't include curl. ECS health checks need it to probe /healthz. --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4332315..3fb2ece 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,9 @@ COPY src/ src/ RUN cargo build --release FROM debian:trixie-slim -RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y ca-certificates curl && rm -rf /var/lib/apt/lists/* COPY --from=builder /app/target/release/ghpool /ghpool EXPOSE 8080 +HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \ + CMD curl -sf http://localhost:8080/healthz || exit 1 ENTRYPOINT ["/ghpool"]