Q. How can you reduce image size while writing Dockerfiles?
β
Correct Answer: (C)
Use multi-stage builds
Explanation: Multi-stage builds help create lightweight, optimized final images by separating build and runtime stages.