io.js + Bower + Grunt in Docker
This image is based on the offical io.js Docker image. It provides the minimum tools and environment for building web applications.
Supported tags and respective
(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.)
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/iojs-bower-grunt npm install
docker run -it --rm -v "$(pwd)":/data -e CI=true killercentury/iojs-bower-grunt bower install --allow-root --config.storage.packages="/data/.bower/cache"
docker run -it --rm -v "$(pwd)":/data killercentury/iojs-bower-grunt grunt --no-color
docker run -it --rm -v "$(pwd)":/data killercentury/iojs-bower-grunt iojs app.js
This Docker image will be updated automatically once there is new version of io.js being pushed to the Docker Hub. However, it only contains the latest version for the time being.