26 points | by milkikomasiko 2 hours ago ago
11 comments
Surely this is ripped content?
https://sandeepbansod.medium.com/why-your-docker-container-i...
Yep, it’s also AI slop. @dang ?
We had issues running our Node app on alpine. Specifically the dns lookup for our API calls were taking several hundred milliseconds *every* time.
Switching to debian reduced it to microseconds.
Does anyone here know what I was doing wrong with alpine?
Alpine is a bad idea for a non-trivial application written in Python, Node.js, or any other interpreted language.
Too many weird edge cases to deal with, especially related to Alpine using musl libc instead of glibc.
At best, your builds are slower.
At worst, certain code paths are broken.
And if you are using Go, then go directly to SCRATCH images (add timezone and TLS data - https://ashishb.net/programming/docker-scratch-image/).
I had this experience as well, nowadays I use Debian slim. Too much random breakage in Alpine.
Musl is much less optimized than glibc, random example: https://andygrove.io/2020/05/why-musl-extremely-slow/
Good post. Using slim is the easiest and biggest impact change.
Ditch docker and use Golang to bring it to 4MB.
Ditch Golang and use a textfile containing the text "Hello world!" to bring it to 12 bytes.
This website seems entirely filled with AI slop articles targeted towards software eng.
Surely this is ripped content?
https://sandeepbansod.medium.com/why-your-docker-container-i...
Yep, it’s also AI slop. @dang ?
We had issues running our Node app on alpine. Specifically the dns lookup for our API calls were taking several hundred milliseconds *every* time.
Switching to debian reduced it to microseconds.
Does anyone here know what I was doing wrong with alpine?
Alpine is a bad idea for a non-trivial application written in Python, Node.js, or any other interpreted language.
Too many weird edge cases to deal with, especially related to Alpine using musl libc instead of glibc.
At best, your builds are slower.
At worst, certain code paths are broken.
And if you are using Go, then go directly to SCRATCH images (add timezone and TLS data - https://ashishb.net/programming/docker-scratch-image/).
I had this experience as well, nowadays I use Debian slim. Too much random breakage in Alpine.
Musl is much less optimized than glibc, random example: https://andygrove.io/2020/05/why-musl-extremely-slow/
Good post. Using slim is the easiest and biggest impact change.
Ditch docker and use Golang to bring it to 4MB.
Ditch Golang and use a textfile containing the text "Hello world!" to bring it to 12 bytes.
This website seems entirely filled with AI slop articles targeted towards software eng.