77
This repository contains Docker images for Node.js development environments with multiple package managers pre-installed. The images are particularly suitable for CI/CD usage.
node:22-slimnode:24-slimEach Docker image includes:
# Build Node.js 22 image
docker build -f Dockerfile-node22 -t nodejs-dev:22 .
# Build Node.js 24 image
docker build -f Dockerfile-node24 -t nodejs-dev:24 .
# Run Node.js 22 container
docker run -it --rm nodejs-dev:22 /bin/bash
# Run Node.js 24 container
docker run -it --rm nodejs-dev:24 /bin/bash
# Run with volume mounting for development
docker run -it --rm -v $(pwd):/workspace -w /workspace nodejs-dev:22 /bin/bash
Once inside the container, you can use any of the pre-installed package managers:
# Using npm
npm install
npm run dev
# Using yarn
yarn install
yarn dev
# Using pnpm
pnpm install
pnpm dev
# Using bun
bun install
bun dev
Content type
Image
Digest
sha256:916307cfb…
Size
178.3 MB
Last updated
about 1 year ago
docker pull wassa/node-ci:22