Alpine-Linux-based minimal builds of Node.js versions
8.7K
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.
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.
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
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
Content type
Image
Digest
Size
30.6 MB
Last updated
almost 9 years ago
docker pull irakli/node-alpine:6.12