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
But these old versions don't have this flag right?