Opinionated automated Node.js w/ Bower & Grunt runtime Build
10K+
This repository contains a Dockerfile that builds a Node.js w/ Bower & Grunt runtime. It is also the base for an automated build that is maintained on the public Docker Hub Registry.
This is a base image for deploying/running your Node.js applications.
It can automatically bundle a Node.js application with its dependencies and set the default command with no additional Dockerfile instructions.
This project was heavily inspired by code from: dockerfile/nodejs-bower-grunt-runtime.
Optional - docker will download the image if needed when you build your nodejs docker application image.
Download an automated build from the public Docker Hub Registry: docker pull digitallyseamless/nodejs-bower-grunt-runtime:image-support
(alternatively, you can build an image from Dockerfile: docker build -t="digitallyseamless/nodejs-bower-grunt-runtime" github.com/DigitallySeamless/nodejs-bower-grunt-runtime/tree/image-support)
This image assumes that your application:
build task.dist folder with a package.json file that should be installed with npm install --production.server.js as the entrypoint script or defines a start script in package.json: "scripts": {"start": "node <entrypoint_script_js>"}process.env.NODE_ENV to determine production environment.8080When building your application docker image, ONBUILD triggers NPM to install your application's dependencies.
Node.js application directory with the following content: FROM digitallyseamless/nodejs-bower-grunt-runtime:image-support
docker build -t="app" .
8080: APP=$(docker run -d -p 8080 app)
PORT=$(docker port $APP 8080 | awk -F: '{print $2}')
echo "Open http://localhost:$PORT/"
This repo also includes "feature branches" that add various libraries and other components to the base image. Each feature branch is an automated build as well, and is tagged in the Docker Hub Registry by it's branch name.
digitallyseamless/nodejs-bower-grunt-runtime:image-support] - adds graphicsmagick and imagemagick to the base imagedigitallyseamless/nodejs-bower-grunt-runtime:compass-support] - adds ruby and ruby-compass to the base imageContent type
Image
Digest
sha256:fd470511f…
Size
263.2 MB
Last updated
over 8 years ago
docker pull digitallyseamless/nodejs-bower-grunt-runtime