Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description


squid-deb-proxy preconfigured in a container - for faster updates and container builds

Build container

There is a automated build available at the Docker Hub. You can build it yourself if you want to change settings like the max cache size (defaults to 4000 MB).

docker build -t dermitch/deb-proxy .

Run container

You should use a volume to keep downloaded packages between container restarts. The maximum size for the cache directory is about 4000 MB.

# Run squid on localhost:8080 ($HOSTPORT:80)
docker run -d --name deb-proxy -p 8080:80 -v /var/cache:/cache dermitch/deb-proxy

# Use with Dockerfiles

Add the following line to your dockerfile to accelerate all package downloads:

RUN echo 'Acquire::http::Proxy "http://container:ip/";' > /etc/apt/apt.conf.d/01proxy
RUN echo 'Acquire::http::Proxy "";' > /etc/apt/apt.conf.d/01proxy

Hint: If you want to use apt after the build process, you should make sure your proxy is always accessible or remove the created file.

Docker Pull Command
Source Repository