Process Flow - Multi-stage builds concept
Start: Define Stage 1
Build app in Stage 1
Define Stage 2
Copy artifacts from Stage 1 to Stage 2
Build final image in Stage 2
Result: Smaller final image
Multi-stage builds use multiple steps in one Dockerfile to build and copy only needed files, making the final image smaller.