fix(web): replace wget --spider with wget -qO /dev/null (BusyBox alpine compat)
Some checks are pending
CI / lint + typecheck + tests (push) Waiting to run
CI / docker build + push (push) Blocked by required conditions

wget --spider is GNU wget only; nginx:alpine uses BusyBox wget which does not
support --spider, causing the container healthcheck to fail and Traefik to
return 503 for dashboard.barodine.net.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Paperclip FoundingEngineer 2026-05-03 00:52:41 +00:00
parent 3790f67e64
commit 85b33026e7
2 changed files with 2 additions and 2 deletions

View file

@ -116,7 +116,7 @@ services:
- 'traefik.http.middlewares.agenthub-dashboard-headers.headers.customrequestheaders.X-Forwarded-Proto=https'
- 'traefik.http.routers.agenthub-dashboard.middlewares=agenthub-dashboard-headers'
healthcheck:
test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://localhost/healthz']
test: ['CMD', 'wget', '-qO', '/dev/null', 'http://localhost/healthz']
interval: 30s
timeout: 5s
retries: 3

View file

@ -83,6 +83,6 @@ EOF
EXPOSE 80
HEALTHCHECK --interval=30s --timeout=5s --retries=3 --start-period=5s \
CMD wget --no-verbose --tries=1 --spider http://localhost/healthz || exit 1
CMD wget -qO /dev/null http://localhost/healthz || exit 1
CMD ["nginx", "-g", "daemon off;"]