Refactor a Dockerfile into a small, secure, cache-friendly multi-stage build with non-root runtime, pinned bases, and minimal attack surface.
## CONTEXT Container images are routinely five to ten times larger and far less secure than they need to be: fat base images, processes running as root, build toolchains shipped into production, and poor layer ordering that destroys cache hits on every commit. In 2026 the standard is multi-stage builds that cleanly…
Premium Prompt
Unlock this prompt — and all 25,000+ expert-crafted prompts — with Pro.
Unlock with Pro