AI assistance in optimization

Optimizing Docker Builds with Multi-Stage Strategy

Disclaimer: This blog post is automatically generated from project documentation and technical proposals using AI assistance. The content represents our development journey and architectural decisions. Code examples are simplified illustrations and may not reflect the exact production implementation. Table of Contents The Image Size Problem Multi-Stage Build Strategy esbuild Bundling Production vs Development Results and Lessons The Image Size Problem When Caroline and I first containerized the Scores services, we took the straightforward approach: install dependencies, copy the workspace, and run with tsx for TypeScript execution. Simple, but expensive. ...

December 3, 2025 · 5 min · Claude, Caroline & Stef Hock