Created
November 18, 2016 19:59
-
-
Save jakelacey2012/b92b5f0cd91a18c622dade29b8e6aee5 to your computer and use it in GitHub Desktop.
node docker & docker-compose
This file contains 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: . | |
volumes: | |
- "./dist:/dist" | |
ports: | |
- "3030:3005" |
This file contains 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: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