Ndërtimët me shumë faza përdorin shumë faza FROM në një Dockerfile — ndërtojnë aplikacionin në një fazë (me të gjithë mjetet e ndërtimit) dhe kopjojnë vetëm artefaktet përfundimtare në një fazë përfundimtare të pastër, minimale. Kjo prodhon imazhe prodhimi shumë më të vogla, më të sigurta.\n\n## Problemi: mjetet e ndërtimit e fryrë imazhin\n\ntext Building an app needs build tools (compilers, dev dependencies, SDKs), but the FINAL image shouldn't include them: → they bloat the image (larger size, slower deploys) → they increase the attack surface (more software = more vulnerabilities) → You want only the built artifact + its runtime in the final image. \n\n## Ndërtim me shumë faza\n\n```dockerfile
