Skip to content

Instantly share code, notes, and snippets.

@gmlnchv
Created January 22, 2016 06:29
Show Gist options
  • Save gmlnchv/f9853636a4404e5197c7 to your computer and use it in GitHub Desktop.
Save gmlnchv/f9853636a4404e5197c7 to your computer and use it in GitHub Desktop.
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
{
"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