8000 GitHub - LeslieLei/docker-yeoman-builder: Dockerfile to build yeoman generated codes
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

LeslieLei/docker-yeoman-builder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

This image is built from ruby:2.1, 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.

Usage

after cd to your project root: $ cd path/to/project

  • to do npm install:
docker run -it --rm \
-v $(pwd):/app \
-v $(pwd)/node_modules:/app/node_modules \
-w /app \
yeoman-builder:latest \
npm install
  • to do 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
  • to do 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

About

Dockerfile to build yeoman generated codes

Resources

Stars

Watchers

Forks

Packages

No packages published
0