this post was submitted on 13 Sep 2023
19 points (95.2% liked)
Programming
17398 readers
94 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
250mb is a curios interpretation of "lightweight"
Standard
node
images are around 1 GB.node:lts-alpine
is about 176 MB. So it’s fairly close toalpine
in this case.Sure, but it you consider that 166MB of that is for the node part alone, the "slim" image ships 80MB of stuff to basically do nothing
It would be interesting to see what the difference is. The
slim
image doesn’t even havevi
installed, although it does havebash
. 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 betweenapk
andapt
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.
The Wolfi based chainguard images for node are glibc based and come in at 111mb, so its definitely possible.