Sign inSign up

thevishalkumar/node22-pnpm-pm2

By thevishalkumar

β€’Updated about 1 year ago

node.js 22 Alpine with corepack-enabled pnpm and global pm2

Image
Developer tools
Web servers
0

3.0K

thevishalkumar/node22-pnpm-pm2 repository overview

⁠🐳 Node 22 + pnpm + pm2 (Alpine) Docker Base Image

Docker Pulls Image Size

Minimal and production-ready Docker base image built on top of node:22-alpine, with pnpm (via Corepack) and pm2 preinstalled for modern Node.js apps.

β πŸ”§ What's Included?

  • βœ… Node.js v22 (Alpine)
  • βœ… bash, curl
  • βœ… corepack enabled with latest pnpm
  • βœ… Global pm2
  • βœ… Small, fast, production-focused

β πŸš€ Use Case

Perfect for apps that:

  • Use pnpm for dependency management
  • Use pm2 as a process manager (e.g., clustering, daemon, monitoring)
  • Are deployed in containers for production or staging

β πŸ“¦ Example Usage

FROM thevishalkumar/node22-pnpm-pm2:latest

WORKDIR /app

COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile

COPY . .
RUN pnpm run build

CMD ["pnpm", "start:pm2"]

β πŸ› οΈ Build Details

FROM node:22-alpine

RUN apk add --no-cache bash curl \
 && corepack enable \
 && corepack prepare pnpm@latest --activate \
 && npm install -g pm2

⁠🏷️ Available Tags

  • latest – always points to the most recent stable image
  • 22 – Node.js 22 with latest pnpm and pm2
  • 22.x.x (coming soon) – pinned patch versions for reproducible builds

β πŸ“© Maintainer

Vishal Kumar πŸ₯‡ AWS Certified Solutions Architect – Professional⁠

πŸ“§ [email protected]⁠
πŸ™ GitHub: @the-vishal-kumar⁠
πŸ’Ό LinkedIn: @the-vishal-kumar⁠
🐦 Twitter/X: @the_vishalkr⁠
πŸ“Έ Instagram: @the_vishal_kumar⁠

⁠🌐 Let’s Connect

πŸ™ Always building, always learning. Open to collaborations, contributions, and coffee β˜•.

β πŸ“ License

MIT – Use it freely in your own projects.

⁠🀝 Contributions

Feel free to open issues or PRs if you'd like to suggest improvements or add new versions!

Tag summary

Content type

Image

Digest

sha256:1afac6083…

Size

73.7 MB

Last updated

about 1 year ago

docker pull thevishalkumar/node22-pnpm-pm2