mirror of https://github.com/IoTcat/upload-api.git
parent
42a502e3f2
commit
d177416201
5 changed files with 27 additions and 0 deletions
@ -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" ] |
@ -0,0 +1,11 @@ |
||||
{ |
||||
"name": "upload-api", |
||||
"script": "src/index.js", |
||||
"instances": "2", |
||||
"env": { |
||||
"NODE_ENV": "development" |
||||
}, |
||||
"env_production" : { |
||||
"NODE_ENV": "production" |
||||
} |
||||
} |
Before Width: | Height: | Size: 107 KiB |
Before Width: | Height: | Size: 107 KiB |
Loading…
Reference in new issue