Docker image improvements using multi-stage builds and build args

The right place to discuss this is the topic you linked to. Best possible contribution you could make is a PR showing how all this can be done.