Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/firstandthird/proxy-npm-bower

Dockerfile to proxy npm and bower for faster builds
https://github.com/firstandthird/proxy-npm-bower

Last synced: 3 days ago
JSON representation

Dockerfile to proxy npm and bower for faster builds

Awesome Lists containing this project

README

        

# proxy-npm-bower

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.

## Usage

`docker run -d firstandthird/proxy-npm-bower`

* Get container ID: `docker ps`
* Get IP: `docker inspect --format '{{ .NetworkSettings.IPAddress }}' containerid`

## NPM

```
npm install bower --registry http://ip:8001/
```

## Bower

```
bower install popbox --config.registry="http://ip:8002"
```