Add curl to image for use native HEALTHCHECK
4n70w4 opened this issue · comments
Krot Eval commented
Jane Jeon commented
Would love this as well. Some form of built-in healthcheck would be nice.
Viharm commented
Yes, it would be good to have any form of healthcheck.
Peter Duchnovsky commented
in the meantime you guys could do this (dockerfile_inline works in newer docker-compose versions):
version: '2.4'
services:
whoami:
container_name: whoami
build:
context: .
dockerfile_inline: |
FROM traefik/whoami
COPY --from=ghcr.io/tarampampam/curl /bin/curl /curl
HEALTHCHECK --interval=10s --start-period=2s CMD ["/curl", "--fail", "http://127.0.0.1:80/health"]
restart: always
I Opened PR #81