Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.