This repository contains Dockerfile of Node.js w/ Bower & Grunt for Docker's automated build published to the public Docker Hub Registry.
Install Docker.
Download automated build from public Docker Hub Registry: docker pull dockerfile/nodejs-bower-grunt
(alternatively, you can build an image from Dockerfile: docker build -t="dockerfile/nodejs-bower-grunt" github.com/dockerfile/nodejs-bower-grunt)
docker run -it --rm dockerfile/nodejs-bower-grunt
nodedocker run -it --rm dockerfile/nodejs-bower-grunt node
npmdocker run -it --rm dockerfile/nodejs-bower-grunt npm
bowerdocker run -it --rm dockerfile/nodejs-bower-grunt bower
gruntdocker run -it --rm dockerfile/nodejs-bower-grunt grunt
You can mount a volume if you would like to output the results of a command back to your local disk. This is useful if you want to share the output of your commands with another container via a shared mounted volume.
// install grunt-contrib-watch to volume, then use it to watch for changes to the files specified in your Gruntfile
docker run -it --rm -v <local_path>:/data dockerfile/nodejs-bower-grunt npm install grunt-contrib-watch --save-dev
docker run -it --rm -v <local_path>:/data dockerfile/nodejs-bower-grunt grunt watch
// your custom app container that needs assets to be regenerated as you edit
docker run -it --rm -v <local_path>:<your_custom_mount_point> <your_custom_container> <your_run_cmd>
Content type
Image
Digest
sha256:466d32313…
Size
201 MB
Last updated
almost 11 years ago
docker pull marcmeszaros/nodejs-bower-grunt