Skip to content

Instantly share code, notes, and snippets.

@jakelacey2012
Created November 18, 2016 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakelacey2012/b92b5f0cd91a18c622dade29b8e6aee5 to your computer and use it in GitHub Desktop.
Save jakelacey2012/b92b5f0cd91a18c622dade29b8e6aee5 to your computer and use it in GitHub Desktop.
node docker & docker-compose
web:
build: .
volumes:
- "./dist:/dist"
ports:
- "3030:3005"
FROM node:4.6.1
RUN npm install nodemon -g
ADD ./src ./src
ADD ./package.json ./package.json
ADD ./.babelrc ./.babelrc
ADD ./config ./config
RUN npm install
RUN npm run prestart
# ADD app/nodemon.json /src/nodemon.json
EXPOSE 3005
CMD npm start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment