From 44a6375adfaae4d2c4252564769f4ffb1be4a6a6 Mon Sep 17 00:00:00 2001 From: ereti <43418802+ereti@users.noreply.github.com> Date: Mon, 8 Nov 2021 11:55:08 +0000 Subject: [PATCH] add HEALTHCHECK --- server/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/server/Dockerfile b/server/Dockerfile index 5865c6be4..892ecab4c 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -3,4 +3,5 @@ WORKDIR /app COPY . /app RUN apt-get update && rm -rf /var/lib/apt/lists/* RUN npm install -g pnpm && pnpm i +HEALTHCHECK --interval=15s --timeout=5s --start-period=20s CMD curl -f http://localhost/api/v1/status || exit 1 CMD pnpm start