An image with nodejs files in it.
344
Nodejs binaries downloaded. An image that downloads node binaries from https://nodejs.org/dist/
This image was made for copying node binaries to other images on a multi-stage build setup.
The files are under /opt/node
For example, to have node v11.10.1 on a Ubuntu Xenial project you could have a Dockerfile like this:
Dockerfile
FROM ubuntu:xenial
WORKDIR "/opt/node"
COPY --from=fczuardi/node_download:11.10.1 /opt/node/bin bin
ENV PATH=$PATH:/opt/node/bin
Tags on this project are node versions, so fczuardi/node_download:10.16.3
should give node v10.16.3
Images are auto-generated on Docker hub for the following tags:
To pull one of those existing tags, for example, 11.10.1 use:
docker pull fczuardi/node_download:11.10.1
But if you need a version that is not on the above list, for example 11.14.0,
you can create a new build locally by reusing the Dockerfile and passing the node_version
build argument:
git clone https://www.github.com/fczuardi/docker-node_download
cd docker-node_download
docker build -t my-image-name:11.14.0 --build-arg node_version=11.14.0 .
Content type
Image
Digest
Size
23.5 MB
Last updated
almost 7 years ago
docker pull fczuardi/node_download:12.10.0