Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.