This image provides a minimal CentOS Stream 8 image with Node.js and NPM installed.
This image has two tags: latest and lts.
centos-nodejs:latest: based on current latest stable release of Node.js (18.x.x).
centos-nodejs:lts: based on current LTS release of Node.js (16.x.x).
To build latest tag:
docker build --tag centos-nodejs:latest ./latestTo build lts tag:
docker build --tag centos-nodejs:lts ./ltsYou can use this image as a base for other Docker images, by using FROM adevur/centos-nodejs:latest in your Dockerfile.
Otherwise, you can also use this image as stand-alone. For example, if you run:
docker run --rm --name nodejs -it adevur/centos-nodejs:lts /bin/bashYou'll have a bash terminal opened in a container with CentOS Stream 8, Node.js 16.x.x LTS and latest NPM version.
Node.js and NPM have been installed using the procedure described at: NodeSource Node.js Binary Distributions