Skip to content

adevur/docker-centos-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

centos-nodejs

This image provides a minimal CentOS Stream 8 image with Node.js and NPM installed.

Tags

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).

Building

To build latest tag:

docker build --tag centos-nodejs:latest ./latest

To build lts tag:

docker build --tag centos-nodejs:lts ./lts

Usage

You 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/bash

You'll have a bash terminal opened in a container with CentOS Stream 8, Node.js 16.x.x LTS and latest NPM version.

Additional info

Node.js and NPM have been installed using the procedure described at: NodeSource Node.js Binary Distributions