Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Learn / Courses / Introduction to Docker Exercise Ordering Dockerfile instructions When writing Dockerfiles, the order of your Dockerfile instructions determines how long the build
Learn Courses Introduction to Docker
Exercise
Ordering Dockerfile instructions
When writing Dockerfiles, the order of your Dockerfile instructions determines how long the build will take after updating any of the commands. Do you understand how to make the most efficient Dockerfiles?
Drag the items below into order
Instructions
Order the Dockerfile instructions to the order in which you are most likely able to reuse as many cached layers as possible.
From how we typically work, we know that the packages we need for our pipeline, defined in requirements.txt change less often than the python code in
pipeline.py
COPY apprequirementstxt apprequirementstxt
COPY apppipelinepy apppipelinepy
FROM
docker.iolibraryubuntu
RUN aptget install y python
RUN aptget update
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started