Server: Automatically restarts the server when it crashes, with exponentiel back-off

This commit is contained in:
Laurent Cozic committed 2023-11-01 16:28:45 +00:00
1 parent dbd3db873f
commit 0c8b475736
3 files changed
+762 -37

No files matched your search

+1 -1
View File
@@ -71,7 +71,7 @@ EXPOSE ${APP_PORT}
# https://github.com/nodejs/docker-node/blob/main/docs/BestPractices.md#handling-kernel-signals
WORKDIR /home/$user/packages/server
ENTRYPOINT ["tini", "--"]
CMD ["node", "dist/app.js"]
CMD ["yarn", "start-prod"]
# Build-time metadata
# https://github.com/opencontainers/image-spec/blob/master/annotations.md