Skip to content

Instantly share code, notes, and snippets.

@abulte
Created November 1, 2015 18:46
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 abulte/8aa5ea34feb8bf1fb300 to your computer and use it in GitHub Desktop.
Save abulte/8aa5ea34feb8bf1fb300 to your computer and use it in GitHub Desktop.
Node Dockerfile / Docker-Compose
web:
build: .
command: nodemon -L server.js
ports:
- 3000:3000
volumes:
- .:/code
- /code/node_modules
FROM node:0.12
EXPOSE 3000
RUN mkdir /code
WORKDIR /code
COPY package.json /code/
RUN npm install
RUN npm install -g nodemon
ADD . /code
@abulte
Copy link
Author

abulte commented Nov 1, 2015

TODO: find a workaround for horrible nodemon performances in this context...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment