Sign inSign up

jrnt30/nodejs-grunt-bower-runtime

By jrnt30

•Updated almost 11 years ago

Image
0

936

jrnt30/nodejs-grunt-bower-runtime repository overview

⁠jrnt30/nodejs-grunt-bower-runtime

jrnt30/nodejs-grunt-bower-runtime⁠ is a docker⁠ base image for easily running nodejs⁠ application.

It can automatically bundle a nodejs application with its dependencies and set the default entrypoint with no additional Dockerfile instructions.

It is based on google/nodejs⁠ base image.

⁠Usage

  • Create a Dockerfile in your nodejs application directory with the following content:

      FROM jrnt30/nodejs-grunt-bower-runtime
    
  • Run the following command in your application directory:

      docker build -t app .
    

⁠Notes

The image assumes that your application:

⁠Example

package.json

{
  "name": "hello-world",
  "description": "hello world test app",
  "version": "0.0.1",
  "private": true,
  "dependencies": {
    "express": "3.x"
  },
  "scripts": {"start": "node app.js"}
}

When building your application docker image, ONBUILD triggers fetch the dependencies listed in package.json, bower.json and cache them appropriatly, after which Grunt build will be called.

Tag summary

Content type

Image

Digest

sha256:21d791d08…

Size

129.3 MB

Last updated

almost 11 years ago

docker pull jrnt30/nodejs-grunt-bower-runtime