Build optimized Docker containers
docker-developmentpluginsetup L2★17,464
alirezarezvani/claude-skills ↗What it does
Optimize Dockerfiles, docker-compose, multi-stage builds, and container security hardening
Best for
When production containers require optimized build time, minimal image size, and security hardening rather than default Docker patterns.
Inputs
- · Dockerfile or docker-compose.yaml
- · application code + dependencies
Outputs
- · optimized Dockerfile: multi-stage, layer caching, base image selection
- · docker-compose config: service orchestration, networking, volumes
- · security hardening: non-root user, minimal base, secrets management
- · build performance audit: layer caching, build time
Requires
- · Dockerfile analyzer (stdlib Python)
- · docker-compose validator
- · security scanner (OWASP, CIS benchmarks)
- · build performance profiler
Preconditions
- · application deployable as container
- · base image available (public or private registry)
Failure modes
- · Multi-stage optimization breaks on non-standard build systems
- · Security hardening (non-root) incompatible with legacy app
- · Layer caching doesn't improve build time if dependencies change frequently
Trust signals
- · Multi-stage build patterns (layer optimization)
- · OWASP + CIS security benchmarks
- · Build performance profiling
- · docker-compose orchestration validation