Dockerfile Rules
CommunityOptimize Docker images for size and security.
Authoriceflower
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides best practices and patterns for creating efficient, secure, and maintainable Docker images, reducing build times and attack surfaces.
Core Features & Use Cases
- Multi-Stage Builds: Learn to separate build dependencies from runtime environments to minimize image size.
- Image Optimization: Apply techniques for layer caching, base image selection, and
.dockerignoreconfiguration. - Security Best Practices: Implement non-root users, minimal permissions, and vulnerability scanning strategies.
- Use Case: Streamline your CI/CD pipeline by building smaller, more secure Docker images for your Spring Boot applications.
Quick Start
Apply the multi-stage build pattern to create a lean Docker image for a Java application.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: Dockerfile Rules Download link: https://github.com/iceflower/opencode-agents-and-skills/archive/main.zip#dockerfile-rules Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.