A Docker image for running node applications in webteam projects.
2.6K
A light-weight docker image for running node applications (https://nodejs.org/).
This image also has Yarn and Bower.
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`
Content type
Image
Digest
Size
205.3 MB
Last updated
about 9 years ago
docker pull canonicalwebteam/node