Per the discussion in https://github.com/docker/cli/pull/231#discussion_r124122908, the `runBuild()` function in cli/command/image/build.go is getting quite long, and may need a refactor