Rewrite the dockerfile as a multistage build: this means we can get rid of a whole load of cruft which we don't need.