Sign inSign up

killercentury/nodejs-bower-grunt

By killercentury

Updated over 7 years ago

Web app build tools for containerized CI environment or workflow

Image
1

10K+

killercentury/nodejs-bower-grunt repository overview

Node.js + Bower + Grunt in Docker

This image is based on the offical Node.js Docker image. It provides the minimum tools and environment for building web applications.

(The onbuild-production image forces a production flag on bower install due to the current version hasn't accepted it via environment variable yet. However, there is no forced production flag on npm install, since most people use grunt which is installed as devDependencies.)

Examples

Following commands are examples that show you how to develop your application inside a container environment or run it inside the same environment on CI. (Some arguments may not be required depending on your actual use case.)

docker run -it --rm -v "$(pwd)":/data killercentury/nodejs-bower-grunt npm install
docker run -it --rm -v "$(pwd)":/data -e CI=true killercentury/nodejs-bower-grunt bower install --allow-root --config.storage.packages="/data/.bower/cache"
docker run -it --rm -v "$(pwd)":/data killercentury/nodejs-bower-grunt grunt --no-color
docker run -it --rm -v "$(pwd)":/data killercentury/nodejs-bower-grunt node app.js

This Docker image will be updated automatically once there is new version of Node.js being pushed to the Docker Hub. However, it only contains the latest version for the time being.

Tag summary

Content type

Image

Digest

sha256:3a5274f39

Size

342.7 MB

Last updated

over 7 years ago

docker pull killercentury/nodejs-bower-grunt