Reduced a Docker image from 1.37GB → 168MB.
@Anupam_Devops2.1K followers
157,923 views
24 Comments
Comments from the original post on X (Twitter)

@Guptha933907
@Gooner__14 Nice improvement. Smaller images not only speed up CI/CD but also reduce the attack surface and pull times across nodes, which really matters in large clusters.
11 likes

@Anupam_Devops
Great analysis 😃👍
2 likes

@pranavz7
@Gooner__14 It's good idea but careful you will be missing required tools.
3 likes

@Anupam_Devops
Sure.

@QuantumMentat
@Gooner__14 Nice, I wrote a tool that might help with it. A dockerfile analyzer.
2 likes

@royalland
@Gooner__14 The guy who's just discovered Alpine...
2 likes

@judempacko
@Gooner__14 Might reduce a few megabytes if you go for the Alpine version
1 like

@Anupam_Devops
Yeah sure.
1 like

@Aleas
@Gooner__14 Using alpine instead of node, such wow.
1 like

@noxeraph
@Gooner__14 you can go further with distroless images:
1 like

@Anupam_Devops
Yeah sure.

@rohitwork42
@Gooner__14 Everyone know this
1 like

@elashera
@Gooner__14 this is the content i want to see! thanks
1 like

@Anupam_Devops
Appreciate it Mate 🙌

@LightShiftHQ
@Gooner__14 Wowza! Your container just shrunk down like magic 🧙♂️—from Mr.
1 like

@vpetryniak
@Gooner__14 Yep, and as result slower runtime since everything is optimised by and for glibc
1 like

@fromcodetocloud
@Gooner__14 perfect anupam & also it is popular interview question
1 like

@Anupam_Devops
Yes I try to mostly share interview related content at the moment 🙂
1 like

@tracker1
@Gooner__14 Also worth considering distroless and alpine where practical... Though alpine's libc (musl) usage is slightly slower than the glibc (gnu libc) you'd get from distro based slim images.
1 like

@Anupam_Devops
Thanks for the input 🙂



