Lightweight (~33 MB) Node.js image based on Alpine
9.6K
5.7, 5, latest (Dockerfile)5.7-onbuild, 5-onbuild, onbuild (Dockerfile)5.6 (Dockerfile)5.6-onbuild (Dockerfile)4.2, 4 (Dockerfile)4.2-onbuild, 4-onbuild (Dockerfile)0.12 (Dockerfile)0.12-onbuild (Dockerfile)This image contains Node.js v5.6 and NPM v3.7. It is based on Alpine linux, which, despite being a very lightweight distribution, provides apk package manager, allowing easy installation of many pre-built packages.
node-alpine:latest, node-alpine:XXXBasic image. Contains Node and NPM.
node-alpine:onbuild, node-alpine:XXX-onbuildExtended version of the image with added ONBUILD triggers (similar to and inspired by google/nodejs-runtime image). These triggers execute on each build of a derived image, and perform two tasks:
Dockerfile to the /app directory inside the container, but skip node_modules directory and all files/dirs listed in the .dockerignore file;This allows Dockerfiles of derived images to contain less boilerplate instructions:
FROM ficusio/node-alpine:5-onbuild
EXPOSE 8080
# This will be performed automatically:
# WORKDIR /app
# COPY . /app
# npm install --production
# CMD ["node", "index.js"]
The image's Dockerfile contains comments that explain all steps performed by these triggers. There is also an example application which uses this image as a base.
Content type
Image
Digest
Size
10.9 MB
Last updated
over 10 years ago
docker pull ficusio/node-alpine