Q. How can you reduce image size while writing Dockerfiles?

  • (A) Use larger base images
  • (B) Avoid multi-stage builds
  • (C) Use multi-stage builds
  • (D) Use many RUN instructions
πŸ’¬ Discuss
βœ… Correct Answer: (C) Use multi-stage builds
Explanation: Multi-stage builds help create lightweight, optimized final images by separating build and runtime stages.
Explanation by: Mr. Dubey
Multi-stage builds help create lightweight, optimized final images by separating build and runtime stages.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
85
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
89%
Success Rate