From 8bcaf710ad580d78a254dc89060f30c0395bbdf2 Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Sat, 12 Dec 2020 13:14:38 +0100 Subject: [PATCH] integrate pm2 process manager to keep the app up and running ref #24 --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e246ca6..053018b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file +RUN npm i pm2 -g +ENTRYPOINT ["pm2-runtime","dist/app.js"] +# ENTRYPOINT ["node","dist/app.js"] \ No newline at end of file