QuestionQ30

VerifiedDeploying applications

You are deploying a Python application to Cloud Run by using Cloud Source Repositories and Cloud Build. The Cloud Build pipeline is shown below:

Question Image

You want to optimize deployment time and avoid unnecessary steps. What should you do?

Explanation

Docker image layers can be reused across builds by specifying a previously built image as the cache source with --cache-from. This reduces rebuilding of unchanged layers and speeds subsequent Docker builds. The image must still be pushed to Artifact Registry because Cloud Run deploys the container image from that registry. Best practices for speeding up builds

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!