File tree Expand file tree Collapse file tree 3 files changed +21
-5
lines changed
Expand file tree Collapse file tree 3 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ FROM base AS dev
1717USER 1000:1000
1818VOLUME [ "/app" ]
1919ENTRYPOINT [ "./entrypoint.sh" ]
20- CMD ["pm2-runtime" , "ecosystem.config.cjs" ]
20+ CMD ["pm2-runtime" , "ecosystem.dev. config.cjs" ]
2121
22- FROM base
23- COPY ecosystem.config.cjs requirements.txt ./
22+ FROM base AS prod
23+ COPY ecosystem.prod. config.cjs requirements.txt ./
2424RUN pip install --no-cache-dir -r requirements.txt
2525COPY src src
2626USER 1000:1000
27- CMD ["pm2-runtime" , "ecosystem.config.cjs" ]
27+ CMD ["pm2-runtime" , "ecosystem.prod. config.cjs" ]
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ module.exports = {
1212 '.github' ,
1313 '.gitignore' ,
1414 'Dockerfile' ,
15- 'ecosystem.config.cjs' ,
15+ 'ecosystem.dev.config.cjs' ,
16+ 'ecosystem.prod.config.cjs' ,
1617 'LICENSE' ,
1718 'manifest.json' ,
1819 'README.md' ,
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ apps : [
3+ {
4+ cmd : 'talkops' ,
5+ name : 'client' ,
6+ } ,
7+ {
8+ autorestart : true ,
9+ error_file : process . env . TALKOPS_STDERR ,
10+ name : 'extension' ,
11+ out_file : process . env . TALKOPS_STDOUT ,
12+ script : 'src/main.py' ,
13+ } ,
14+ ] ,
15+ }
You can’t perform that action at this time.
0 commit comments