Skip to content

Instantly share code, notes, and snippets.

@underground
Last active August 26, 2016 10:01
Show Gist options
  • Save underground/9e10bf1c214fc4e86cca439ddfe9d05b to your computer and use it in GitHub Desktop.
Save underground/9e10bf1c214fc4e86cca439ddfe9d05b to your computer and use it in GitHub Desktop.
Very simple samples for pure ( for example express) web apps that run on top of Node.js
FROM node:6.4.0
WORKDIR /usr/local/src
ADD . /usr/local/src
RUN cd /usr/local/src
RUN npm install
CMD ["npm", "run", "start"]
@underground
Copy link
Author

Usage

1. Place this file in the project root
2. docker build -t dev/example:latest .
3. docker run -v `pwd`:/usr/local/src -p 8080:3000 dev/example

=> http://localhost:8080 in your browser

For example , if you run in this sample , it will be hot load!!
https://github.com/reactjs/redux/tree/master/examples/counter

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