Move healthcheck to Dockerfile

This commit is contained in:
Alan Grainger
2024-11-02 23:13:32 +01:00
parent 4ed249086c
commit cb02aafee7
3 changed files with 3 additions and 5 deletions
+2
View File
@@ -19,4 +19,6 @@ RUN chown -R node:node /app
USER node
HEALTHCHECK --interval=30s --start-period=10s --timeout=5s CMD node /app/healthcheck.js || exit 1
CMD ["pm2-runtime", "dist/index.js" ]