Multi-Stage Build (EN)
ConceptDocker build process with multiple phases to create optimized images
Multi-Stage Build Process
flowchart TD A[Dockerfile] --> B[Build-Phase 1] B --> C[Build-Tools & Quellcode] C --> D[Build-Artefakte] D --> E[Build-Phase 2] E --> F[Laufzeit-Abhängigkeiten] F --> G[Endgültiges Image] G --> H[Produktion]
Example
- Typically used together with Dockerfiles
- Related to: Docker Image, Containerization
- Example use case: Creation of small Node.js images without build tools