Practice what you just read
10 free practice questions. No credit card.
| Stage | Purpose | Example Base |
|---|---|---|
| Build | Compile/package application | golang:1.21, node:18 |
| Final | Minimal runtime image | scratch, distroless, alpine |
COPY --from=builder /app/binary /app/binary to copy only the compiled artifact into the final stage.| Pattern | Purpose | Example |
|---|---|---|
| Sidecar | Extend/enhance main container | Log shipper, proxy |
| Init Container | Setup before main starts | DB migration, config fetch |
| Adapter | Normalize output | Metrics format converter |
| Ambassador | Proxy external access | Database proxy |
Practice what you just read
10 free practice questions. No credit card.