Skip to content

Instantly share code, notes, and snippets.

@Yuyz0112
Created June 26, 2018 05:51
Show Gist options
  • Save Yuyz0112/7ffc020f02a04b5f28ed14359672bae5 to your computer and use it in GitHub Desktop.
Save Yuyz0112/7ffc020f02a04b5f28ed14359672bae5 to your computer and use it in GitHub Desktop.
docker run -i \
--rm \
--name node-test \
-v "$PWD":/code \
-w /code node:latest \
/bin/bash -c "npm i --silent --progress=false --registry=https://registry.npm.taobao.org && npm run test"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment