This image is built from ruby:2.2, with node, grunt and bower added.
The purpose of this image is to build front-end codes on server without installing the whole dev environments such node, grunt and bower.
after cd to your project root: $ cd path/to/project
npm install:docker run -it --rm \
-v $(pwd):/app \
-v $(pwd)/node_modules:/app/node_modules \
-w /app \
yeoman-builder:latest \
npm install
bower install:docker run -it --rm \
-v $(pwd):/app \
-v $(pwd)/bower_components:/app/bower_components \
-w /app yeoman-builder:latest \
bower --allow-root --config.interactive=false install
grunt build:docker run -it --rm \
-v $(pwd):/app \
-v $(pwd)/node_modules:/app/node_modules \
-v $(pwd)/bower_components:/app/bower_components \
-w /app yeoman-builder:latest \
grunt build
Content type
Image
Digest
sha256:064d3fe65…
Size
-
Last updated
about 11 years ago
docker pull tsaomichael/docker-yeoman-builder