Alpine Linux (in lightweightness), but glibc?

Yes, I know so much of Alpine's lightweightness comes from not using glibc.

But still, the other options I see are far from being slimmed down. Debian, Ubuntu server, CentOS... They all could use some cuts.

What's the most slimmed down non-desktop distro that still has a glibc base? I honestly don't care if it has its own package manager (build tool handles this for me). Just wanna use it in containers for running server apps.

19 points · 8 comments · view on lemmy.world

8 Comments

realharo@lemm.ee · 5 pts · 3y
ck_@discuss.tchncs.de · 5 pts · 3y
[ removed ]
kinttach@lemm.ee · 4 pts · 3y (5 replies)

What runtime do you need? If it’s Node.js, the “slim” Docker images are lightweight and based on Debian. (for example node:lts-slim)

ck_@discuss.tchncs.de · 4 pts · 3y (4 replies)
[ removed ]
kinttach@lemm.ee · 3 pts · 3y (3 replies)

Standard node images are around 1 GB. node:lts-alpine is about 176 MB. So it’s fairly close to alpine in this case.

ck_@discuss.tchncs.de · 1 pts · 3y (2 replies)
[ removed ]
kinttach@lemm.ee · 3 pts · 3y (1 reply)

It would be interesting to see what the difference is. The slim image doesn’t even have vi installed, although it does have bash. And of course, git, etc. are not present. Much of the difference could be the size difference between musl and libc, and the size difference between apk and apt metadata.

I don’t think OP is going to find a non-musl distro as small as Alpine. These stripped-down Debians are a lot bigger, but among the smallest non-Alpine that you’ll find.

ck_@discuss.tchncs.de · 1 pts · 3y
[ removed ]
tutor5051@lemmy.dbzer0.com · 2 pts · 3y
karlhungus@lemmy.ca · 2 pts · 3y

May be worth looking at distroless containers.

a-man-from-earth@kbin.social · 1 pts · 3y (1 reply)

You can completely customize Gentoo Linux to be what you want it to be and slim it down to what you need.

cyclohexane@lemmy.ml · 2 pts · 3y

My experience with gentoo docker images is that they're pretty big. I'm not sure why. Maybe the build system or the python deps make it big. I tried squashing the image layers and it was still big, so it isn't that.