From 8d5974d0f803cf34a9e2fc3262195a1994a8e05b Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 26 Jul 2019 11:59:59 -0400 Subject: [PATCH] docker health check --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index e8c8096bfe..41be86e584 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,7 @@ LABEL com.bitwarden.product="bitwarden" RUN apt-get update \ && apt-get install -y --no-install-recommends \ gosu \ + curl \ && rm -rf /var/lib/apt/lists/* ENV ASPNETCORE_URLS http://+:5000 @@ -14,4 +15,6 @@ COPY ./build . COPY entrypoint.sh / RUN chmod +x /entrypoint.sh +HEALTHCHECK CMD curl -f http://localhost:5000 || exit 1 + ENTRYPOINT ["/entrypoint.sh"]