ClineDockerSecurity

Docker Cline Rules

Cline rules for Docker: container security, image optimization, and production container patterns.

.clinerules
- Use docker init to scaffold Dockerfiles with current best practices
- Apply chainguard images for minimal attack surface in production
- Use cosign for image signing; verify signatures in deployment pipeline
- Apply COPY --link for faster, more cache-friendly layer creation
- Use BuildKit inline cache with --cache-to and --cache-from in CI
- Generate SBOM during image build with docker buildx bake
- Apply seccomp and AppArmor profiles for container syscall restriction
- Use Docker Scout to analyze and remediate image vulnerabilities

How to use with Cline

Create a `.clinerules` file in your project root. Cline reads this file and applies the rules to all AI-assisted coding.

#docker#cline#security#containers#coding-rules

Related Rules