We reduced a real Node.js production Docker image from 1.2GB to 78MB

milkikomasiko 27 points 14 comments May 23, 2026
the-practical-developer.online · View on Hacker News

Discussion Highlights (5 comments)

tpaksoy

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?

1a527dd5

Surely this is ripped content? https://sandeepbansod.medium.com/why-your-docker-container-i...

coolThingsFirst

Ditch docker and use Golang to bring it to 4MB.

wxw

This website seems entirely filled with AI slop articles targeted towards software eng.

Eighth

Good post. Using slim is the easiest and biggest impact change.

Semantic search powered by Rivestack pgvector
8,303 stories · 78,303 chunks indexed