Commit 08a7b61
committed
fix: healthcheck fails with BusyBox wget that lacks --spider flag
The healthcheck used wget --spider which is not supported by BusyBox wget
that ships with nginx:alpine. This caused the healthcheck to fail with
"wget: unrecognized option: spider" even when nginx was serving correctly.
The container would be permanently marked unhealthy in:
- Docker ps output
- Docker Compose health status
- Kubernetes liveness/readiness probes
- GitHub Actions verification steps
Changed to BusyBox-compatible syntax:
- Before: wget --no-verbose --tries=1 --spider http://localhost/
- After: wget -q -O /dev/null http://localhost/
Both commands check if the server responds without downloading the body,
but the new syntax works with BusyBox's limited wget implementation.1 parent 7063f6c commit 08a7b61
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
0 commit comments