Sign inSign up

ebruni/pnpm

By ebruni

Updated 4 months ago

pnpm is a Docker image node with git and pnpm enabled.

Image
Languages & frameworks
Developer tools
0

2.2K

ebruni/pnpm repository overview

What is pnpm?

pnpm is a Docker image node with git and pnpm enabled.

All images, unless explicitly defined, are based on node:24-alpine3.22

How to use this image

Start the application as

$ docker run --rm -ti ebruni/pnpm

Environment variables

This image runs under the user node (uid/gid 1000/1000) by default.

You can match the UID/GID of the user in the container with the UID of the user on your host system.
This is useful if you want to mount a volume from your host system into the container.

You can do this by setting the environment variable FORCE_UID to the UID of the user on your host system and FORCE_GID to the GID of the user on your host system.

For example, if your user has UID 1000 and GID 1000, you can run the container like this:

$ docker run --rm -ti -e FORCE_UID=1000 -e FORCE_GID=1000 ebruni/pnpm

This will set the UID and GID of the user in the container to the same UID and GID as the user on your host system.

This way, you can avoid permission issues when mounting a volume from your host system into the container.

Entrypoint.d

This image supports the multiple entrypoint.d scripts.
You can add your own scripts to the /etc/entrypoint.d directory in the container.
These scripts will be executed in alphabetical order when the container starts.
You can use this feature to run your own initialization scripts or to customize the behavior of the container.

Supported scripts are:

  • *.sh - shell scripts running at startup in alphabetical
  • *.env - environment variables to be set in the container
  • *.stop - shell scripts running at shutdown in alphabetical order

Authors

Emiliano Bruni (EB) [email protected]

Changes

AUTHORDATEVER.COMMENTS
EB2026-05-0824.4.0Add ubuntu release
EB2026-01-0824.3.0Switch to bash as default shell for node user and add bash autocomplete. Update node to 24.x and alpine to 3.22
EB2025-05-1223.3.6Add jq to process json files (package.json).
EB2025-04-2323.3.5Add entrypoint.d system to run other script before command.
EB2025-03-1423.3.4Fix bugs
EB2025-03-1323.3.3Add support for custom UID/GID for node user. Add colored prompt
EB2025-03-1123.3.2Add tini as entrypoint. Update corepack to latest
EB2024-12-0223.3.1Add PNPM_HOME to PATH
EB2024-12-0223.3.0First Release

Source

The source of this image on GitHub.

Tag summary

Content type

Image

Digest

sha256:f71c24aea

Size

67.5 MB

Last updated

4 months ago

docker pull ebruni/pnpm