Full Stack & AI Automation Engineer
I'm a full stack and AI automation engineer in Lahore, Pakistan. I build AI agents, MCP servers and automation pipelines, and the Next.js, React, Node.js and NestJS products around them, on PostgreSQL or MongoDB. Clear system design, fast pages and code that holds up in production.
Markdown supported · ⌘↵ to post
The standalone tracing is the detail people miss: only the files the server actually imports make it into the runtime stage, which is where most of the size drop comes from. The non-root step pairs well with it and is an easy one to skip.
Waseem Anjum
AI Developer
The measured size comparison is what makes this convincing, and the split between public build-time ARGs and runtime secrets is a detail many Dockerfile guides get wrong. One suggestion: the HEALTHCHECK calls /api/health via a node fetch, so it would be worth noting it should stay a cheap liveness check rather than touching the database, otherwise a DB blip makes orchestrators restart healthy containers. Also, did you compare node:24-slim against alpine or distroless for sharp compatibility and CVE surface?