We reduced a real Node.js production Docker image from 1.2GB to 78MB
milkikomasiko
27 points
14 comments
May 23, 2026
Related Discussions
Found 5 related stories in 80.6ms across 8,303 title embeddings via pgvector HNSW
- Docker Offload redbell · 22 pts · April 05, 2026 · 53% similar
- We moved Railway's frontend off Next.js. Builds went from 10+ mins to under 2 bundie · 200 pts · April 08, 2026 · 50% similar
- We replaced Node.js with Bun for 5x throughput pier25 · 29 pts · April 06, 2026 · 48% similar
- A decade of Docker containers zacwest · 269 pts · March 07, 2026 · 48% similar
- We Reverse-Engineered Docker Sandbox's Undocumented MicroVM API yakkomajuri · 76 pts · May 21, 2026 · 47% similar
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.