Sign inSign up

canonicalwebteam/node

By canonicalwebteam

•Updated about 9 years ago

A Docker image for running node applications in webteam projects.

Image
0

2.6K

canonicalwebteam/node repository overview

A light-weight docker image for running node applications (https://nodejs.org/⁠).

This image also has Yarn⁠ and Bower⁠.

⁠Usage

docker run  \
  --user $(id -u):$(id -g)                       `# Use the current user inside container`  \
  --volume `pwd`:`pwd`                           `# Mirror current directory inside container`  \
  --volume node-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`  \
  node yarn                                      `# Run the "yarn" inside this project`

Tag summary

Content type

Image

Digest

Size

205.3 MB

Last updated

about 9 years ago

docker pull canonicalwebteam/node