You can use the makefile to build the image. "make packages" will build packages inside the builder container. Use https://github.com/kalikaneko/squid-in-a-can if you want to save some bandwith while building your images.