build: add pull flag to force image pulling

This PR adds a flag to `docker build`. `docker build --pull .` will force the pulling of the image, even if it exists locally.
Force pulling the image will update the existing local image if there's one.

Fixes #4238
Why is this needed?  I think we could always set it and we would be ok right?