Skip to content

Instantly share code, notes, and snippets.

@joerter
Last active January 24, 2016 23:57
Show Gist options
  • Save joerter/eed7c2a1cc9ec9105ca1 to your computer and use it in GitHub Desktop.
Save joerter/eed7c2a1cc9ec9105ca1 to your computer and use it in GitHub Desktop.
FROM node:5.5.0
EXPOSE 3000
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.json /usr/src/app/
RUN npm install
docker run --name dockerized-container -d -p 3000:3000 -v $pwd:/usr/src/app dockerized npm start
...
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "supervisor server.js"
},
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment