Reduced a Docker image from 1.37GB → 168MB.
@Anupam_Devops2,1 тыс. подписчиков
157 923 просмотра
24 комментария
Комментарии из оригинального поста в 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 отметок «Нравится»

@Anupam_Devops
Great analysis 😃👍
2 отметки «Нравится»

@pranavz7
@Gooner__14 It's good idea but careful you will be missing required tools.
3 отметки «Нравится»

@Anupam_Devops
Sure.

@QuantumMentat
@Gooner__14 Nice, I wrote a tool that might help with it. A dockerfile analyzer.
2 отметки «Нравится»

@royalland
@Gooner__14 The guy who's just discovered Alpine...
2 отметки «Нравится»

@judempacko
@Gooner__14 Might reduce a few megabytes if you go for the Alpine version
1 отметка «Нравится»

@Anupam_Devops
Yeah sure.
1 отметка «Нравится»

@Aleas
@Gooner__14 Using alpine instead of node, such wow.
1 отметка «Нравится»

@noxeraph
@Gooner__14 you can go further with distroless images:
1 отметка «Нравится»

@Anupam_Devops
Yeah sure.

@rohitwork42
@Gooner__14 Everyone know this
1 отметка «Нравится»

@elashera
@Gooner__14 this is the content i want to see! thanks
1 отметка «Нравится»

@Anupam_Devops
Appreciate it Mate 🙌

@LightShiftHQ
@Gooner__14 Wowza! Your container just shrunk down like magic 🧙♂️—from Mr.
1 отметка «Нравится»

@vpetryniak
@Gooner__14 Yep, and as result slower runtime since everything is optimised by and for glibc
1 отметка «Нравится»

@fromcodetocloud
@Gooner__14 perfect anupam & also it is popular interview question
1 отметка «Нравится»

@Anupam_Devops
Yes I try to mostly share interview related content at the moment 🙂
1 отметка «Нравится»

@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 отметка «Нравится»

@Anupam_Devops
Thanks for the input 🙂



