Created
November 1, 2015 18:46
-
-
Save abulte/8aa5ea34feb8bf1fb300 to your computer and use it in GitHub Desktop.
Node Dockerfile / Docker-Compose
This file contains hidden or 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
web: | |
build: . | |
command: nodemon -L server.js | |
ports: | |
- 3000:3000 | |
volumes: | |
- .:/code | |
- /code/node_modules |
This file contains hidden or 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:0.12 | |
EXPOSE 3000 | |
RUN mkdir /code | |
WORKDIR /code | |
COPY package.json /code/ | |
RUN npm install | |
RUN npm install -g nodemon | |
ADD . /code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TODO: find a workaround for horrible
nodemon
performances in this context...