Last active
October 23, 2018 05:30
-
-
Save asbubam/7f949c5ddce0b0853c44618684ec56c9 to your computer and use it in GitHub Desktop.
npm install(cache) with docker
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
mkdir -p /tmp/npm-cache-linux | |
docker run -v /tmp/npm-cache-linux:/root/.npm -v "$PWD":/usr/src/app -w /usr/src/app node:alpine sh -c 'npm install --prefix ./build ./' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment