From 95f40a9c287745dc7ccffc792f8880ff17cbc515 Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Sat, 12 Dec 2020 13:15:10 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=BA=E2=9D=A4=F0=9F=90=B3=20Docker=20he?= =?UTF-8?q?althcheck?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ref #24 --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 053018b..9f8ce72 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,5 +21,8 @@ COPY --from=0 /app/dist dist RUN npm i --production RUN npm i sqlite3 RUN npm i pm2 -g + +HEALTHCHECK CMD curl --fail http://localhost:4010 || exit 1 + ENTRYPOINT ["pm2-runtime","dist/app.js"] # ENTRYPOINT ["node","dist/app.js"] \ No newline at end of file