docker 17.05 now supports [multi-stage builds](https://blog.alexellis.io/mutli-stage-docker-builds/) which should simplify the creation of daemon images