added healthcheck

This commit is contained in:
juma-allan 2024-06-08 17:18:52 +03:00 committed by GitHub
parent 354a5bb8af
commit 89b4739aec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,9 @@ COPY --from=builder --chown=nonroot /go/src/github.com/cloudflare/cloudflared/cl
# run as non-privileged user
USER nonroot
# set health-check
HEALTHCHECK &{["CMD-SHELL" "curl --fail http://127.0.0.1:80/ || exit 1"] "1m0s" "40s" "0s" '\n'}
# command / entrypoint of container
ENTRYPOINT ["cloudflared", "--no-autoupdate"]
CMD ["version"]