Skip to content

Commit

Permalink
feat: add graceful shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
okan-cakmak committed Feb 27, 2024
1 parent 7a738eb commit cb8be39
Show file tree
Hide file tree
Showing 13 changed files with 1,131 additions and 688 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:v16.13.0
RUN apt-get update && apt-get install tini
RUN npm install pm2 -g

ENV APP_HOME="/usr/src/app"

WORKDIR ${APP_HOME}

COPY . ${APP_HOME}/

ENTRYPOINT ["tini", "--"]

CMD ["pm2-runtime", "pm2.json"]
Loading

0 comments on commit cb8be39

Please sign in to comment.