Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 1.94 KB

README.md

File metadata and controls

48 lines (34 loc) · 1.94 KB

volta-docker

An unofficial container for Volta: The Hassle-Free JavaScript Tool Manager

GitHub Actions Workflow Status

GitHub Actions Workflow Status

Docker Images

michaelr0/volta-docker:latest - Ubuntu image, currently built from compiling volta-cli/volta
michaelr0/volta-docker:alpine - Alpine image, currently built from compiling volta-cli/volta
michaelr0/volta-docker:nightly-ubuntu - Ubuntu image, compiled from volta-cli/volta
michaelr0/volta-docker:nightly-alpine - Alpine image, compiled from volta-cli/volta

How to use this image

This image comes preinstalled with Node 20 LTS, but commands such as npm, yarn should automatically download and use any defined version from your package.json

Basic usage

$ docker run --rm --interactive --tty \
  --volume $PWD:/app \
  michaelr0/volta-docker <command>

Filesystem permissions

By default, Volta runs as root inside the container. This can lead to permission issues on your host filesystem. You can work around this by running the container with a different user:

$ docker run --rm --interactive --tty \
  --user $(id -u):$(id -g) \
  --volume $PWD:/app \
  michaelr0/volta-docker <command>

See: https://docs.docker.com/engine/reference/run/#user⁠ for details.

Note: Docker for Mac behaves differently and this tip might not apply to Docker for Mac users.

Credits