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