eienmojiki commited on
Commit
54120fd
·
verified ·
1 Parent(s): 82633a7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -32,6 +32,7 @@ WORKDIR /app
32
 
33
  RUN chown -R 1000 /app
34
  COPY --chown=1000 sync-notes.js ./
 
35
 
36
  RUN npm install -g pm2 && \
37
  npm install node-cron
@@ -48,4 +49,4 @@ USER 1000
48
 
49
  EXPOSE 8787
50
 
51
- CMD ["/bin/sh", "-c", "cd .data; git pull; cd ..; pm2 start sync-notes.js; node index.cjs"]
 
32
 
33
  RUN chown -R 1000 /app
34
  COPY --chown=1000 sync-notes.js ./
35
+ COPY --chown=1000 ecosystem.config.js ./
36
 
37
  RUN npm install -g pm2 && \
38
  npm install node-cron
 
49
 
50
  EXPOSE 8787
51
 
52
+ CMD ["/bin/sh", "-c", "cd .data; git pull; cd ..; pm2-runtime ecosystem.config.js"]