Building Smaller Container Images
summary
Uses multi-stage Docker builds and dnf install into an empty installroot, disabling weak deps and docs, plus targeted package swaps, to shrink images — an nginx demo drops about 216 MB after switching to smaller libs and options. A dependency analyzer (rpm-show) drives which packages to change; choosing glibc-minimal and other minimal alternatives trims the tree. Resulting Red Hat images include a UBI Micro 38 MB / 13 MB (compressed) build; runtime behavior depends mainly on glibc, kernel and OpenSSL, not the packaging.
AI-written summary · about
chapters (4)
- 0:00Start
- 0:02Building Smaller Container Images
- 13:24Building Smaller Images
- 18:45Minimizing Dependencies
related talks
14mSmall Containers? or Small Images?
40m"Willy Wonka and the Secure Container Factory"
27mDocker Image Journey - How to Shrink a Docker Image
35mOptimizing Containers for Security and Scaling
25mBuild Distroless Containers the Easy Way: From Full Fat To Featherweight With Unbase_oci
34mWhat's new in Image Builder?
26mUnravelling the Magical Act of DockerSlim Minifying Container Images
40mBuilding Better Containers: A Survey of Container Build Tools [I]
