Skip to content

Commit ef62b74

Browse files
committed
update
1 parent 6584de7 commit ef62b74

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ FROM base AS dev
1717
USER 1000:1000
1818
VOLUME [ "/app" ]
1919
ENTRYPOINT [ "./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 ./
2424
RUN pip install --no-cache-dir -r requirements.txt
2525
COPY src src
2626
USER 1000:1000
27-
CMD ["pm2-runtime", "ecosystem.config.cjs"]
27+
CMD ["pm2-runtime", "ecosystem.prod.config.cjs"]
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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',

ecosystem.prod.config.cjs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
}

0 commit comments

Comments
 (0)