Sign inSign up

andrewmackrodt/nodejs

By andrewmackrodt

Updated 4 months ago

Node.js, npm and yarn images for Current, LTS and Maintenance releases.

Image
1

100K+

andrewmackrodt/nodejs repository overview

andrewmackrodt/docker-nodejs

Status Pulls Dockerfile Size Version

Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine.

Versions

The current major Node.js (v25) is tagged as latest. lts and maintenance images are also provided:

  • andrewmackrodt/nodejs:20 (end-of-life: 2026-04-30)
  • andrewmackrodt/nodejs:22 maintenance (end-of-life: 2027-04-30)
  • andrewmackrodt/nodejs:24 lts (end-of-life: 2028-04-30)
  • andrewmackrodt/nodejs:25 current (end-of-life: 2026-06-01)

All images are bundled with npm and yarn.

Update Schedule

Images are built nightly and images will be updated as new major.minor.patch-release packages of Node.js are released. It's possible to pull a specific tag, e.g. docker pull andrewmackrodt/nodejs:10.16.0-r1, see Docker Hub for a list of supported tags.

Removal Policy

Old tags are subject to removal periodically without notice.

Usage

docker
# start interactive mode
docker run --rm -it andrewmackrodt/nodejs

# print version
docker run --rm andrewmackrodt/nodejs --version

# run npm install in the current directory
docker run --rm -it \
  -e PUID=$(id -u) \
  -e PGID=$(id -g) \
  -v $PWD:/app \
  -w /app \
  andrewmackrodt/nodejs npm install

# run yarn install in the current directory
docker run --rm -it \
  -e PUID=$(id -u) \
  -e PGID=$(id -g) \
  -v $PWD:/app \
  -w /app \
  andrewmackrodt/nodejs yarn install

Parameters

ParameterFunction
-e PUID=1000The user id, recommended: $(id -u)
-e PGID=1000The group id, recommended: $(id -g)
-e SUDO_NOPASSWD=0Set to 1 to allow passwordless sudo

Tag summary

Content type

Image

Digest

sha256:058395970

Size

305.5 MB

Last updated

4 months ago

docker pull andrewmackrodt/nodejs