File tree Expand file tree Collapse file tree
examples/advanced/01-go-multistage Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ This example demonstrates an **extreme** multi-stage build using Go, resulting i
1212
1313## 📊 Image Size Comparison
1414
15- | Build Type | Image Size | Description |
15+ | < sub > Build Type</ sub > | < sub > Image Size</ sub > | < sub > Description</ sub > |
1616| -----------| -----------| -------------|
17- | Single-stage (golang:1.21) | ~ 800MB | Includes entire Go toolchain |
18- | Multi-stage (alpine) | ~ 15MB | Uses Alpine Linux runtime |
19- | Multi-stage (scratch) | ** ~ 6MB** | Only contains the binary |
17+ | < sub > Single-stage (golang:1.21)</ sub > | < sub > ~ 800MB</ sub > | < sub > Includes entire Go toolchain</ sub > |
18+ | < sub > Multi-stage (alpine)</ sub > | < sub > ~ 15MB</ sub > | < sub > Uses Alpine Linux runtime</ sub > |
19+ | < sub > Multi-stage (scratch)</ sub > | < sub > ** ~ 6MB** </ sub > | < sub > Only contains the binary</ sub > |
2020
2121## 🚀 Quick Start
2222
@@ -77,4 +77,4 @@ COPY --from=builder /build/server /server
7777
7878- [ Go Documentation] ( https://golang.org/doc/ )
7979- [ Docker Multi-Stage Builds] ( https://docs.docker.com/build/building/multi-stage/ )
80- - [ Scratch Base Image] ( https://hub.docker.com/_/scratch )
80+ - [ Scratch Base Image] ( https://hub.docker.com/_/scratch )
You can’t perform that action at this time.
0 commit comments