Have you considered using something like [dockerize](https://github.com/jwilder/dockerize) to do the templating in your squid template in your entrypoint to avoid having people rebuild?