Skip to content

Commit

Permalink
docker
Browse files Browse the repository at this point in the history
  • Loading branch information
IoTcat committed Jun 18, 2020
1 parent 7d40668 commit c5b313f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
@@ -0,0 +1,16 @@
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
RUN pm2 install pm2-auto-pull

# Show current folder structure in logs
RUN ls -al -R

CMD [ "pm2-runtime", "start", "pm2.json" ]
11 changes: 11 additions & 0 deletions pm2.json
@@ -0,0 +1,11 @@
{
"name": "ushio-win-server",
"script": "src/index.js",
"instances": "2",
"env": {
"NODE_ENV": "development"
},
"env_production" : {
"NODE_ENV": "production"
}
}
File renamed without changes.

0 comments on commit c5b313f

Please sign in to comment.