Process Flow - Targeting specific stages
Start Docker Build
Parse Dockerfile
Identify stages
Check target stage specified?
No→Build all stages
Yes
Build only target stage
Output image for target stage
End Build
Docker reads the Dockerfile, finds all stages, then builds only the specified target stage if given, otherwise builds all stages.