Dockerfile layer-caching prompt cuts Rails deploy from 4 minutes to 54s
DanielLockyer · x · 2026-12-02
DanielLockyer shares a one-line prompt: "Review my Dockerfile and optimise it for layer caching. Minimise invalidation so small changes don't force full rebuilds." User ericintheloft tried it on a Rails app deployed with Kamal: image layer shrank from 190MB to 10MB and full deploys dropped from 4 minutes to 54 seconds.
More from coding & agent
- tldraw hunts for mystery user whose agents read page comments thousands of times daily via MCP — max__drake · 2026-12-02
- A staged permission ladder for AI agents: read-only, then draft, then act — Ganesh_1602 · 2026-12-02
- McKinsey: agentic software delivery cuts effort ~50% and team size ~60% — blaizedsouza · 2026-12-02
- Explaining Agent Sandboxes to Non-Techies via Hogwarts' Room of Requirement — prasanna_says · 2026-12-02
- Lumine2, a Qwen3.5-based game-playing agent model, trends on Hugging Face — LumineResearch · 2026-12-02
- EnterpriseSim: none of 7 models survive concurrent security-patch races in agent benchmark — Dolly Sah · 2026-12-02