/yeoman-webapp

Dockerfile for yeoman + generator-webapp

Apache License 2.0Apache-2.0

Test Drive

  1. run: docker run -it --rm -p 9000:9000 aahoo/yeoman-webapp
  2. yo webappp
  3. gulp serve
  4. open browser > "virtual machine IP":9000 (e.g. http://192.168.99.100:9000/)

Regular Use

Mount a host directory to the container

Need to do only for the first run

  1. mkdir -p my-project && cd $_
  2. docker run -it -p 9000:9000 -v $(pwd):/home/yeoman/my-project --name wa aahoo/yeoman-webapp

In windows, you may have to change $(pwd) to /$(pwd)

  1. yo webapp
  2. gulp serve
  3. open browser > "virtual machine IP":9000 (e.g. http://192.168.99.100:9000/)

Need to do for the following runs

  1. cd my-project
  2. docker start -i wa
  3. gulp serve
  4. open browser > "virtual machine IP":9000 (e.g. http://192.168.99.100:9000/)

More info

This image is based on aahoo/yeoman. Since both of these images are "AUTOMATED BUILD", you can see their Dockerfiles to ensure that you don't compromise your project's security.