Build node application on CI without pain
This image uses the official Node.js image on the Docker Hub as it's base, following their tag convention. Below is a list of currently available tags:
Tags | Environment |
---|---|
latest | Node.js latest on Debian Jessie |
[8][dockerfile-8] | Node.js 7 latest on Debian Jessie |
7 | Node.js 7 latest on Debian Jessie |
wheezy | Node.js latest on Debian Wheezy |
slim | Node.js latest on Debian Jessie |
7-wheezy | Node.js 7 latest on Debian Wheezy |
7-slim | Node.js 7 latest on Debian Jessie |
Install latest:
$ docker pull lavr/node-build
An example of installing project npm dependencies.
Note: Assumes that project.json
exists at source root.
$ docker run \
--rm \
-i \
-t \
-v /path/to/source:/app \
-u `id -u` \
lavr/node-build \
npm install --no-bin-links