-
-
Save aj07mm/c3db0d37b58aef7653126cf9022e3652 to your computer and use it in GitHub Desktop.
Run Node/NPM in a Docker container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For example, run "npm install" | |
docker run -v "$PWD":/usr/src/app -w /usr/src/app node:4 npm install | |
# This command creates a container (downloading one first if you don't have it locally), runs the command in a current directory and quits the container | |
# Great Success! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment