Skip to content

fix: standardize healthcheck to use curl across all Dockerfiles#1272

Open
thuanpham582002 wants to merge 1 commit intoWei-Shaw:mainfrom
thuanpham582002:fix/standardize-healthcheck-curl
Open

fix: standardize healthcheck to use curl across all Dockerfiles#1272
thuanpham582002 wants to merge 1 commit intoWei-Shaw:mainfrom
thuanpham582002:fix/standardize-healthcheck-curl

Conversation

@thuanpham582002
Copy link
Copy Markdown

Summary

  • Replaced wget-based healthchecks with curl in root Dockerfile and deploy/Dockerfile
  • Added consistent flags (-f -s --max-time 5) to the existing curl healthcheck in Dockerfile.goreleaser
  • Added curl to the root Dockerfile's apk install list (already present in the other two Dockerfiles)

All three Dockerfiles now use the identical healthcheck command:

curl -f -s --max-time 5 http://localhost:${SERVER_PORT:-8080}/health || exit 1

Test plan

  • Build root Dockerfile and verify healthcheck passes
  • Build deploy/Dockerfile and verify healthcheck passes
  • Verify Dockerfile.goreleaser builds correctly with GoReleaser

Replace wget-based healthchecks with curl in root Dockerfile and
deploy/Dockerfile, and add consistent flags (-f -s --max-time 5)
to the existing curl healthcheck in Dockerfile.goreleaser.

curl is already installed in deploy/Dockerfile and Dockerfile.goreleaser;
this commit adds curl to the root Dockerfile's apk install list.
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.

1 participant