infra-docker-best-practices
CommunityBuild smaller, safer data engineering images
Software Engineering#data engineering#docker#dockerfile#multi-stage builds#image hardening#ci security scanning#buildkit secrets
Authorivanshamaev
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps you produce Docker images that are smaller, faster to build, and safer to run, reducing CI/CD time, registry costs, and exposure to common CVEs and container misconfigurations.
Core Features & Use Cases
- Multi-stage builds to separate builder and runtime dependencies, keeping production images lean.
- Layer cache optimization to speed up rebuilds by copying lockfiles/dependency manifests before source code.
- Security hardening with non-root users, reduced attack surface (slim/distroless), read-only root recommendations, and secret-safe builds via BuildKit.
- Operational best practices for data engineering containers, including examples for Python ETL, dbt adapters, and Spark submit images.
- Quality gates in CI with image vulnerability scanning (Trivy) and basic size/layer audits (dive/dockers tools).
- Anti-patterns to avoid such as cache-busting COPY order, separate apt-get layers, shell-form CMD/ENTRYPOINT, and shipping secrets/build context.
Quick Start
Use the skill to design your next production Dockerfile by asking: "Review my data engineering Dockerfile and propose a hardened multi-stage, cache-friendly, non-root build with CI image scanning."
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: infra-docker-best-practices Download link: https://github.com/ivanshamaev/de-agent-skills/archive/main.zip#infra-docker-best-practices 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 471,000+ vetted skills library on demand.