Sign inSign up

sourcemation/nodejs-22

By sourcemation

•Updated 14 days ago

Image
0

5.8K

sourcemation/nodejs-22 repository overview

⁠NodeJS 22 with Yarn Classic packed by Sourcemation

Node.jsĀ®, a versatile and scalable JavaScript runtime, empowers the creation of diverse applications, from basic command-line utilities to sophisticated conferencing platforms, thanks to its widespread adoption and extensive module ecosystem.

This specific NodeJS distribution is constructed using the sourcemation/debian-13-slim base image and incorporates Node.js version 22 alongside Yarn Classic, specifically version 1.22.XX.

This image is optimized for build reproducibility and contains the packages needed to compile NodeJS, providing developers with all tools needed in more advanced NodeJS development - thus it's not a super small image.

⁠Usage

Run a temporary container with the NodeJS REPL (don't forget the -it flags).

docker run --rm -it sourcemation/nodejs-22:latest
⁠Advanced usage examples

Serve the contents of the current directory with your NodeJS project using npm.

docker run --rm -p 3000:3000 -v "${PWD}:/your-project" -w "/your-project" -it sourcemation/nodejs-22:latest npm run start

Serve the contents of the current directory with your NodeJS project using yarn.

docker run --rm -p 3000:3000 -v "${PWD}:/your-project" -w "/your-project" -it sourcemation/nodejs-22:latest yarn start

⁠Environment Vars, Ports, Volumes

This image uses the following environment variables:

NODEJS_VERSION=22.YY.ZZ
YARN_VERSION=1.22.XX

⁠Contributing and Issues

We'd love for you to contribute! You can request new features, report bugs, or submit a pull request with your contribution to this image on the Sourcemation GitHub repository.

Disclaimer: The sourcemation/nodejs image is not affiliated with the OpenJS Foundation⁠. The respective companies and organisations own the trademarks mentioned in the offering. The sourcemation/nodejs image is a separate project and is maintained by Sourcemation⁠.

⁠Extra notes

⁠Image and its components Risk Analysis report

A detailed risk analysis report of the image and its components can be found on the Sourcemation platform⁠

For more information, check out the {overview of NodeJS®}(https://nodejs.org/⁠) page.

⁠Licenses

The base license for the solution (NodeJS) is the MIT License, among ASL 2.0, ISC and BSD where appropriate⁠.

Tag summary

Content type

Image

Digest

sha256:9c7b3922b…

Size

300.3 MB

Last updated

14 days ago

docker pull sourcemation/nodejs-22