QuestionQ46

VerifiedAnalyzing and optimizing technical and business processes

A developer on your team deployed an application to Google Kubernetes Engine (GKE) using the Dockerfile below. They report that application deployments take too long.

Question Image

You need to optimize this Dockerfile for faster deployment times without adversely affecting the application's functionality. Which two actions should you take?

Choose two
Explanation

Using a slim, compatible base image such as Alpine Linux can substantially reduce container image size and therefore reduce image-pull and deployment time. Installing the runtime packages before copying application source lets Docker cache those layers, so ordinary source-code changes do not require reinstalling Python and pip.

Community Discussion

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