docker/build: Use docker cache
Fetch the latest images from the registry, hoping that we can use the cache and avoid some steps.
We need to ignore the .git folder, otherwise the cache invalidation might not work.
Podman does not seem to play nice with the image cache, so we have to add an option to run the build without cache.
Signed-off-by: Ricardo Ribalda ribalda@chromium.org