Skip to content

Commit 58bcccb

Browse files
Preventing conflict between PM2 and Docker env vars
- Separating running method in Docker so that it won't try to use PM2's env vars inside the ecosystem.config.js file
1 parent 290a8a4 commit 58bcccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ WORKDIR /home/app
1818

1919
RUN npm install
2020
RUN npm install -g pm2
21-
CMD [ "npm", "start" ]
21+
CMD [ "node", "src/index.js" ]

0 commit comments

Comments
 (0)