squid-deb-proxy preconfigured in a container - for faster updates and container builds
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 .
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:
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.