Last active
November 1, 2016 19:22
-
-
Save vlastv/ada4ebdd00b7fb6d9a0a to your computer and use it in GitHub Desktop.
Docker for npm on Mac OS X
This file contains 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
#!/bin/sh | |
set -e | |
set -- npm "$@" | |
docker run -it --rm \ | |
-v cache:/root/.npm \ | |
-v $(pwd):/usr/src/app \ | |
-v $HOME/.ssh:/root/.ssh \ | |
-w /usr/src/app \ | |
-e bower_interactive=false \ | |
-e bower_allow_root=true \ | |
-e npm_config_unsafe-perm=true \ | |
-p 8080:8080 \ | |
node \ | |
$@ |
Author
vlastv
commented
Oct 7, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment