diff --git a/71-apt-cacher-ng b/71-apt-cacher-ng index 354c988..6c86004 100644 --- a/71-apt-cacher-ng +++ b/71-apt-cacher-ng @@ -1 +1,6 @@ -Acquire::http { Proxy "http://192.168.1.13:3142"; }; +# Uncomment the Acquire line below and then +# Modify the host to match your needs if you wish to +# use apt-cacher in your image build out (and the +# Subsequent running container. + +#Acquire::http { Proxy "http://192.168.1.13:3142"; }; diff --git a/README.md b/README.md index 5807796..6c2a74e 100644 --- a/README.md +++ b/README.md @@ -7,10 +7,24 @@ you should configure the host for it in the provided 71-apt-cacher-ng file. ## Build -To build the image do: +To build the image without apt-cacher do: ``` -docker build -t kartoza/postgis git://github.com/timlinux/docker-postgis +docker build -t kartoza/postgis:2.2 git://github.com/timlinux/docker-postgis +``` + +To build with apt-cache do you need to clone this repo locally first and +modify the contents of 71-apt-cacher-ng to match your cacher host. Then +build using a local url instead of directly from github. + +``` +git clone git://github.com/timlinux/docker-postgis +``` + +Now edit ``71-apt-cacher-ng`` then do: + +``` +docker build -t kartoza/postgis:2.2 . ``` Run