Dockerfile Optimizer
$2.99OfficialUse when a Dockerfile builds slowly, produces oversized images, or needs hardening; rewrites it for smaller, faster, and more secure builds.
devopsdockercontainersdockerfilebuild-cacheimage-sizesecurityยท by SkillingMain
What you get
- โ10-step procedure
- โ1 ready-to-run code block
- โ11-point quality checklist
- โ9 pitfalls to avoid
- โInstalls into 6 tools
- Version
- v1 โ
- Last updated
- today
- Length
- 6 min read
- Requires
- Best with a strong model (Claude Sonnet 4)
Works in: Claude Code, Codex, Cline, opencode, OpenClaw, Hermes ยท Handles multi-file projects
Preview
When to use
Use this skill when asked to shrink a container image, speed up slow Docker builds, fix cache misses, or harden a container for production. Also apply it proactively when you touch any Dockerfile during a larger task and notice obvious waste: no multi-stage build, unpinned base image, running as root, or COPY . . before dependency installation.
Inputs to gather
- The Dockerfile(s), plus any compose file or CI build configuration that sets build args, targets, or platforms.
.dockerignore-- its absence is itself a finding.- Base image and tag in use, and the language/runtime of the application.
- Current image size:
docker images <name>or `docker inspect -f '{{.
โฆ
๐ Buy once ($2.99) to unlock the full playbook, download it, and install it in every tool you use.