This docker image builds on top of the npm-gyp-build image,
ONBUILD instructions to install the project code into the container
npm install. It also sets the default command to the
npm start. See also npm-onbuild for projects that don't require node-gyp.
This library is useful with a simple
For example, using the
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
docker-npm-gyp-onbuild is licensed under the MIT license. See LICENSE for
the full license text.