Skip to content

Docker healthcheck fails because wget is missing from image #135

@cbulock

Description

@cbulock

The iptv-proxy container is running, but Docker reports it as unhealthy because the healthcheck script calls wget, which is not installed in the final image.

Observed health log from the running container:

/usr/src/app/healthcheck.sh: 8: wget: not found

The current Dockerfile installs ffmpeg in the final node:20-bookworm-slim image, then copies healthcheck.sh. The healthcheck runs:

HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
  CMD /bin/sh /usr/src/app/healthcheck.sh

healthcheck.sh uses:

wget --quiet --tries=1 --spider http://localhost:34400/health || exit 1

Possible fixes:

  • Install wget or curl in the final image.
  • Rewrite the healthcheck to use Node's built-in HTTP client so no extra binary is needed.

The app may be functioning correctly; the unhealthy Docker status appears to be caused by the missing healthcheck dependency.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions