🩺🐳 Docker healthcheck

ref #24
This commit is contained in:
Philipp Dormann 2020-12-12 13:15:10 +01:00
parent 8bcaf710ad
commit 95f40a9c28
1 changed files with 3 additions and 0 deletions

View File

@ -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"]