docker build -t npm-cache --no-cache .
docker run -it -p 5080:5080 -p 16984:16984 -v /data -e "BASE_URL=http://$(docker-machine ip dev):5080" --name npm-cache --restart=always npm-cache
npm set registry http://127.0.0.1:5080
Use the following command to switch back to the old default registry.
npm set registry https://registry.npmjs.org
Content type
Image
Digest
Size
285.8 MB
Last updated
about 9 years ago
docker pull telor/npm-cache