1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 15:42:48 -05:00

health checks for docker

This commit is contained in:
Kyle Spearrin
2019-07-26 11:59:42 -04:00
parent d9d2dea784
commit f78b212aa8
10 changed files with 49 additions and 2 deletions

View File

@ -5,6 +5,7 @@ LABEL com.bitwarden.product="bitwarden"
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gosu \
curl \
libcurl3 \
&& rm -rf /var/lib/apt/lists/*
@ -15,4 +16,6 @@ COPY obj/Docker/publish .
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
HEALTHCHECK CMD curl -f http://localhost:5000 || exit 1
ENTRYPOINT ["/entrypoint.sh"]