integrate pm2 process manager to keep the app up and running

ref #24
This commit is contained in:
Philipp Dormann 2020-12-12 13:14:38 +01:00
parent b8aebc14e8
commit 8bcaf710ad

View File

@ -18,8 +18,8 @@ RUN yarn build
FROM node:14
COPY package.json ormconfig.js ./
COPY --from=0 /app/dist dist
# RUN npm i pm2 -g
RUN npm i --production
RUN npm i sqlite3
# CMD ["pm2-runtime","app.js"]
ENTRYPOINT ["node","dist/app.js"]
RUN npm i pm2 -g
ENTRYPOINT ["pm2-runtime","dist/app.js"]
# ENTRYPOINT ["node","dist/app.js"]