Пропустить навигацию
Reduced a Docker image from 1.37GB → 168MB.
0:00 / 1:11

Reduced a Docker image from 1.37GB → 168MB.

Anupam

@Anupam_Devops2,1 тыс. подписчиков

Открыть в X
2 184 отметки «Нравится»СкачатьОригинальный пост

157 923 просмотра

Reduced a Docker image from 1.37GB → 168MB. Just by using multi-stage builds, slim base images, and cleaning unused dependencies. Small optimizations = faster CI/CD and safer containers.

24 комментария

Комментарии из оригинального поста в X (Twitter)

  • Фото профиля Guptha Gudivada | DevOps & SRE

    @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

    @Anupam_Devops

    Great analysis 😃👍

    2 отметки «Нравится»

  • Фото профиля Pranav Shastri

    @pranavz7

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

    3 отметки «Нравится»

  • Фото профиля Anupam

    @Anupam_Devops

    Sure.

  • Фото профиля Patryk Golabek

    @QuantumMentat

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

    2 отметки «Нравится»

  • Фото профиля Royal

    @royalland

    @Gooner__14 The guy who's just discovered Alpine...

    2 отметки «Нравится»

  • Фото профиля Jude Mpacko

    @judempacko

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

    1 отметка «Нравится»

  • Фото профиля Anupam

    @Anupam_Devops

    Yeah sure.

    1 отметка «Нравится»

  • Фото профиля neon light child 🇦🇷

    @Aleas

    @Gooner__14 Using alpine instead of node, such wow.

    1 отметка «Нравится»

  • Фото профиля Noxeraph

    @noxeraph

    @Gooner__14 you can go further with distroless images:

    1 отметка «Нравится»

  • Фото профиля Anupam

    @Anupam_Devops

    Yeah sure.

  • Фото профиля Rowhit Sharma

    @rohitwork42

    @Gooner__14 Everyone know this

    1 отметка «Нравится»

  • Фото профиля Emilio ⛩️

    @elashera

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

    1 отметка «Нравится»

  • Фото профиля Anupam

    @Anupam_Devops

    Appreciate it Mate 🙌

  • Фото профиля LightShift Studio

    @LightShiftHQ

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

    1 отметка «Нравится»

  • Фото профиля Valerii Petryniak

    @vpetryniak

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

    1 отметка «Нравится»

  • Фото профиля Mashood K

    @fromcodetocloud

    @Gooner__14 perfect anupam & also it is popular interview question

    1 отметка «Нравится»

  • Фото профиля Anupam

    @Anupam_Devops

    Yes I try to mostly share interview related content at the moment 🙂

    1 отметка «Нравится»

  • Фото профиля Michael J. Ryan🚩🇺🇲

    @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

    @Anupam_Devops

    Thanks for the input 🙂