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

Latest commit

 

History

History
20 lines (15 loc) · 998 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 998 Bytes

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`