ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 2 - DCA discussion

Report
Export

Is this an advantage of multi-stage builds?

Solution. better logical separation of Dockerfile instructions for increased readability

A.

Yes

Answers
A.

Yes

B.

No

Answers
B.

No

Suggested answer: A

Explanation:

: = Multi-stage builds allow you to use multiple FROM statements in your Dockerfile, each starting a new stage of the build1.This can help you achieve better logical separation of Dockerfile instructions for increased readability, as well as other benefits such as smaller image size, faster build time, and reduced security risks23. By separating your Dockerfile into different stages, you can organize your instructions by their purpose, such as building, testing, or deploying your application.You can also copy only the artifacts you need from one stage to another, leaving behind the unnecessary dependencies or tools1. This can make your Dockerfile easier to read and maintain, as well as improve the performance and security of your final image.Reference:

Multi-stage builds | Docker Docs

What Are Multi-Stage Docker Builds? - How-To Geek

Multi-stage | Docker Docs

asked 08/11/2024
Test Test
25 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first