From 8597ef7a8d40e2288b9e14b227c60ff1461d9ff3 Mon Sep 17 00:00:00 2001 From: goose-ws Date: Wed, 20 Jan 2021 20:22:57 -0500 Subject: [PATCH] Add a health check Adds a health check to ensure the container's webserver is running --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index dd4b51eb9..f5ae4d508 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,3 +30,6 @@ ENV ENV prod ENV APP_MODULE "app:app" VOLUME [ "/app/data" ] + +# healthcheck +HEALTHCHECK CMD curl -sL --fail localhost || exit 1