mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-07-06 05:38:09 +02:00
chore: uses pm2 to start Anonymous GitHub in docker
This commit is contained in:
+6
-1
@@ -5,13 +5,18 @@ EXPOSE $PORT
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN npm install pm2 -g
|
||||
RUN pm2 install typescript
|
||||
|
||||
COPY package.json .
|
||||
COPY package-lock.json .
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY ecosystem.config.js .
|
||||
COPY healthcheck.js .
|
||||
COPY src .
|
||||
COPY index.ts .
|
||||
COPY public .
|
||||
|
||||
CMD [ "npm", "run", "start" ]
|
||||
CMD [ "pm2-runtime", "ecosystem.config.js"]
|
||||
Reference in New Issue
Block a user