Skip to content

Instantly share code, notes, and snippets.

@asbubam
Last active October 23, 2018 05:30
Show Gist options
  • Save asbubam/7f949c5ddce0b0853c44618684ec56c9 to your computer and use it in GitHub Desktop.
Save asbubam/7f949c5ddce0b0853c44618684ec56c9 to your computer and use it in GitHub Desktop.
npm install(cache) with docker
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