Add a health check

Add a health check to ensure the daemon is reachable
This commit is contained in:
goose-ws 2021-01-20 20:32:33 -05:00 committed by GitHub
parent eb99bd45b7
commit 5750466956
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,3 +25,6 @@ EXPOSE 8000 8001
ADD startup.sh /usr/bin/startup.sh ADD startup.sh /usr/bin/startup.sh
ENTRYPOINT ["/usr/bin/startup.sh"] ENTRYPOINT ["/usr/bin/startup.sh"]
# healthcheck
HEALTHCHECK CMD curl -sL --fail localhost:8000 || exit 1