README.md

May 19, 2017 ยท View on GitHub

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`