Created
January 22, 2016 06:29
-
-
Save gmlnchv/f9853636a4404e5197c7 to your computer and use it in GitHub Desktop.
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
FROM node:5.3.0 | |
RUN mkdir /src | |
WORKDIR /src | |
ADD pm2.json ./ | |
ADD package.json ./ | |
RUN npm i; npm i pm2 -g | |
ADD . /src | |
CMD npm run build -- --release && pm2 start pm2.json && pm2 logs |
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
{ | |
"name": "sole", | |
"script": "build/server.js", | |
"args": ["-x", "--no-daemon"], | |
"watch": true, | |
"ignore_watch" : ["node_modules"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment