parent
8ae2dc83c9
commit
95ba1f2133
2 changed files with 27 additions and 0 deletions
@ -0,0 +1,15 @@ |
|||||||
|
FROM keymetrics/pm2:latest-alpine |
||||||
|
|
||||||
|
# Bundle APP files |
||||||
|
COPY src src/ |
||||||
|
COPY package.json . |
||||||
|
COPY pm2.json . |
||||||
|
|
||||||
|
# Install app dependencies |
||||||
|
ENV NPM_CONFIG_LOGLEVEL warn |
||||||
|
RUN npm install --production |
||||||
|
|
||||||
|
# Show current folder structure in logs |
||||||
|
RUN ls -al -R |
||||||
|
|
||||||
|
CMD [ "pm2-runtime", "start", "pm2.json" ] |
Loading…
Reference in new issue