Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

canonical-web-and-design/docker-yarn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Deprecated: This project is not being actively maintained. See docker-node instead.


A light-weight docker image for running Yarn (https://yarnpkg.com/).

It will also attempt to install bower dependencies if it finds a bower.json.

Usage

docker run  \
  --user $(id -u):$(id -g)                       `# Use the current user inside container`  \
  --volume `pwd`:`pwd`                           `# Mirror current directory inside container`  \
  --volume yarn-cache:/home/shared/.cache/       `# Add a persistent volume for the yarn cache`  \
  --workdir `pwd`                                `# Set current directory to the image's work directory`  \
  --tty                                          `# Attach a pseudo-terminal`  \
  --interactive                                  `# Add interactive capabilities to terminal prompt`  \
  yarn                                           `# Run the "yarn" docker image`

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages