Skip to content

fix: add curl + HEALTHCHECK to Dockerfile#10

Merged
thepagent merged 1 commit into
mainfrom
fix/add-curl-healthcheck
Jul 8, 2026
Merged

fix: add curl + HEALTHCHECK to Dockerfile#10
thepagent merged 1 commit into
mainfrom
fix/add-curl-healthcheck

Conversation

@chaodu-agent

Copy link
Copy Markdown
Contributor

Summary

Add curl to the runtime image and define a HEALTHCHECK instruction in the Dockerfile.

Changes

  • Install curl alongside ca-certificates in the runtime stage
  • Add HEALTHCHECK directive: probes /healthz every 30s

Why

ghpool was frozen for 9 days without ECS detecting it — because no health check was configured and curl wasn't available in the image to support one.

With the HEALTHCHECK in the Dockerfile:

  • Docker/ECS automatically monitors container health
  • ECS task definitions inherit the Dockerfile health check if none is specified at the task level
  • Frozen processes get detected and replaced within ~90s

The ghpool container runs on debian:trixie-slim which doesn't include
curl. ECS health checks need it to probe /healthz.
@thepagent thepagent merged commit 83e28f0 into main Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants