A node docker image.
Create a Dockerfile
in the root of application directory:
FROM seegno/node:<tag>
Then simply run:
$ docker build -t node
$ docker run --rm -it node
All of the images are based on node:alpine.
The seegno/node
image comes in multiple flavors. Only the major version is tracked as there is a linked dependency to node:alpine on Docker Hub.
All images come with a yarn
variant (e.g. seegno/node:<version>-yarn
, seegno/node:<version>-onbuild
).
Tag that points to the latest node version available as part of seegno/node:<version>-onbuild
.
Targets a specific version branch of node (e.g. 8
) and is an alias for the onbuild
variant.
Targets a specific version branch of node (e.g. 8
) using a slim
profile:
- Installs build dependencies for native modules;
- Creates and assigns the working directory
/home/node
to thenode
user; - Copies
package.json
andnpm-shrinkwrap.json
to the working directory if they exist.
Targets a specific version branch of node (e.g. 8
) using an onbuild
profile:
- Installs build dependencies for native modules;
- Creates and assigns the working directory
/home/node
to thenode
user; - Copies
package.json
andnpm-shrinkwrap.json
to the working directory if they exist; - Installs packages.
Targets a specific version branch of node (e.g. 8
) using a test
profile:
- Installs build dependencies for native modules;
- Installs packages;
- Runs
npm test
.
This image is officially supported on Docker v1.12.1
, with support for older versions provided on a best-effort basis.
License information for the seegno/node
docker project.