A simple Dockerfile that will spin up an nginx reverse proxy for npm and bower. This was built to help us speed up builds and let us build even if npm or bower were down.
docker run -d firstandthird/proxy-npm-bower
- Get container ID:
docker ps
- Get IP:
docker inspect --format '{{ .NetworkSettings.IPAddress }}' containerid
npm install bower --registry http://ip:8001/
bower install popbox --config.registry="http://ip:8002"