Public | Automated Build

Last pushed: 10 days ago
Short Description
Alpine-Linux-based minimal builds of Node.js versions
Full Description

node-alpine


Alpine-Linux-based, tiny Docker-container for Node, striving for perfection

Compare 25MB of this container with typical 500MB to 800MB sizes you get with Ubuntu- or CentOS-based images.

Runit Support

In most production deployments we would like a process monitor to restart our node service if it ever shuts down. On Alpine Linux such lightweight process monitor is: runit, which you can install by using one of the *-runit tagged builds.

Using

Insert at the top of your Dockerfile:

FROM irakli/node-alpine:6.2-runit

To see all supported versions: https://hub.docker.com/r/irakli/node-alpine/tags/

For more advanced example of usage, see: https://github.com/inadarei/nodebootstrap/blob/master/Dockerfile

Adding More Packages (if needed)

If you need more packages installed (e.g. make, gcc for compiling some native Node modules, or imagemagick etc.) base your new container on this one and you can use apk package manager that Alpine provides. For instance:

apk search --update imagemagick

or:

apk add --update make gcc g++ python linux-header

License

MIT

Docker Pull Command
Owner
irakli
Source Repository