Public | Automated Build

Last pushed: 14 days ago
Short Description
Short description is empty for this repo.
Full Description

docker-npm-onbuild

This is a base image for node.js npm projects that can
execute simple applications ONBUILD.

Purpose

This docker image builds on top of the npm-build image, but adds
ONBUILD instructions to install the project code into the container and
execute npm install. It also sets the default command to the often-useful
npm start.

Usage

This library is useful with a simple package.json and Dockerfile.
For example, using the Dockerfile:

FROM nubs/npm-onbuild:latest

you can build an image with dependencies installed like so:

docker build --tag my-image .

To execute the default command (npm start), you can simply:

docker run -it --rm my-image

Other commands can also be executed. For example, to run a test task:

docker run -it --rm my-image npm test

License

docker-npm-onbuild is licensed under the MIT license. See LICENSE for the full
license text.

Docker Pull Command
Owner
nubs
Source Repository