From 5750466956f432530e1b3b08c60353a3bd310247 Mon Sep 17 00:00:00 2001 From: goose-ws Date: Wed, 20 Jan 2021 20:32:33 -0500 Subject: [PATCH] Add a health check Add a health check to ensure the daemon is reachable --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 019bf69..b5cfcb4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,3 +25,6 @@ EXPOSE 8000 8001 ADD startup.sh /usr/bin/startup.sh ENTRYPOINT ["/usr/bin/startup.sh"] + +# healthcheck +HEALTHCHECK CMD curl -sL --fail localhost:8000 || exit 1