What problem does it solve?
This Skill provides advanced tools and best practices for Dockerfile optimization, container security hardening, and efficient Docker workflows, making container development more efficient and secure.
Core Features & Use Cases
- Dockerfile Optimization: Analyze and optimize Dockerfiles for size, speed, and layer caching.
- Security Audit: Audit Dockerfiles and running containers for security issues like running as root, using the latest tag, and retaining package manager caches.
- Docker Compose Configuration: Generate or improve docker-compose.yml files with best practices for services, networking, and environment configuration.
- Multi-Stage Build Patterns: Implement efficient multi-stage builds for compiled languages and runtime optimizations.
- Base Image Decision Tree: Guidance on choosing the appropriate base image for different scenarios.
- Proactive Triggers: Flags and suggestions for common issues and best practices.
- Related Skills: Integration with other skills for broader DevOps and security workflows.
Quick Start
Run the optimization command for your Dockerfile with the following:
/docker:optimize