Results based on our production application
Method | Build time (s) | Size (mb) | Base image size (mb) | Added size (mb) |
---|---|---|---|---|
Naive | 53 | 896 | 676 | 220 |
Separate install | 28 | 896 | 676 | 220 |
Multistage - separate test | 28 | 790 | 676 | 114 |
Multistage - copy to final | 32 | 774 | 676 | 98 |
Multistage - copy to alpine | 33 | 166 | 68 | 98 |
Multistage - copy to distroless | 33 | 173 | 75 | 98 |