Skip to content

ubbn/pnpm-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

PNPM in Docker

PNPM is a fast, disk space efficient package manager. Read more https://pnpm.io/

This docker image provides PNPM pre-installed on node alpine images https://hub.docker.com/_/node

Usage

To pull the image

docker pull ubbn/pnpm

The images can be found on docker hub

Build a new image

Or you can build your own image by choosing your desired node and pnpm versions with following command:

docker build --tag=<image name>:<tag> \
    --build-arg NODE_VERSION=<node version> \
    --build-arg PNPM_VERSION=<pnpm version> \
    . --no-cache

Examples

Build image of pnpm 8.10.5 on top of node 20.9.0-alpine

docker build --tag=bbn/pnpm:8.10.5 \
    --build-arg NODE_VERSION=20.9.0-alpine \
    --build-arg PNPM_VERSION=8.10.5 \
    . --no-cache

# check versions
docker run --rm my-pnpm:8.10.5 env
docker run --rm my-pnpm:8.10.5 pnpm -v
docker run --rm my-pnpm:8.10.5 node -v

Build image of last pnpm and latest node

docker build --tag=my-pnpm:latest . --no-cache

# check versions
docker run --rm my-pnpm:latest env
docker run --rm my-pnpm:latest pnpm -v
docker run --rm my-pnpm:latest node -v

About

Docker image for pnpm on node alpine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published