Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Writes optimized, secure multi-stage Dockerfiles for Python, Node.js, Go, Rust and Java with BuildKit features and distroless images.
68% 95%+27 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 15 of 22 without it.
When using Google Distroless runtime images like gcr.io/distroless/base-debian12, which pre-existing non-root user account should be declared in the USER instruction?
Sets USER nonroot:nonroot
3 of 3 safety checks passed
Create production-grade Dockerfiles with multi-stage builds, security hardening, and language-specific optimizations.
Invoke when:
Ask three questions to determine the approach:
1. What language?
references/python-dockerfiles.mdreferences/nodejs-dockerfiles.mdreferences/go-dockerfiles.mdreferences/rust-dockerfiles.mdreferences/java-dockerfiles.md2. Is security critical?
references/security-hardening.md)3. Is image size critical?
Separate build environment from runtime environment to minimize final image size.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.