Skip to content

seegno/docker-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

seegno/node

A node docker image.

seegno/node seegno/node

Usage

How to use this 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

Image Variants

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).

seegno/node:latest

Tag that points to the latest node version available as part of seegno/node:<version>-onbuild.

seegno/node:<version>

Targets a specific version branch of node (e.g. 8) and is an alias for the onbuild variant.

seegno/node:<version>-slim

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 the node user;
  • Copies package.json and npm-shrinkwrap.json to the working directory if they exist.

seegno/node:<version>-onbuild

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 the node user;
  • Copies package.json and npm-shrinkwrap.json to the working directory if they exist;
  • Installs packages.

seegno/node:<version>-test

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.

Supported Docker versions

This image is officially supported on Docker v1.12.1, with support for older versions provided on a best-effort basis.

License

License information for the seegno/node docker project.

About

A node docker base image

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published