Skip to content

Instantly share code, notes, and snippets.

@menski
Created November 27, 2014 18:44
Show Gist options
  • Save menski/dd5b35fa807f15cbb7d5 to your computer and use it in GitHub Desktop.
Save menski/dd5b35fa807f15cbb7d5 to your computer and use it in GitHub Desktop.
Use http replicator as http proxy for docker build
#!/bin/sh
CACHE_DIR=cache
mkdir -p $CACHE_DIR
http-replicator -p 8080 -i *.*.*.* -d $CACHE_DIR -s --daemon --log $CACHE_DIR/replicator.log
# add e.g. `ENV http_proxy http://172.17.42.1:8080` to your Dockerfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment