Skip to content

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

License

Notifications You must be signed in to change notification settings

michaelr0/volta-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Languages