Option D, adding the --cache-from argument to the Docker build step in the build config file, would be the best option to optimize deployment times.
The --cache-from argument allows you to specify a list of images that Docker should use as a cache source when building the image. If a layer in the current build matches a layer in one of the cache source images, Docker uses the cached layer instead of building it again, reducing the build time.
Options A and C may not have a significant impact on deployment times, and option B would likely add complexity and increase deployment times, as it would require deploying and managing a new Docker registry and using a VPC-based Cloud Build worker pool.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
__rajan__
7 months, 1 week agopurushi
8 months, 3 weeks agoPime13
1 year, 2 months agomrvergara
1 year, 2 months agoTNT87
1 year, 2 months ago