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
To pull the image
docker pull ubbn/pnpm
The images can be found on docker hub
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
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