container-standards
Container build and runtime standards: multi-stage builds into a minimal runtime (Alpine/Distroless/Scratch), manifest-before-source layer ordering for cache hits, non-root user, vulnerability scan failing on HIGH/CRITICAL, no secrets in the image, tini/dumb-init as PID 1, HEALTH
Install
npx skills add https://github.com/Goldziher/ai-rulez/tree/main/internal/builtins/universal/docker/skills/container-standards
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install goldziher-ai-rulez@llmmart
git clone https://github.com/Goldziher/ai-rulez.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole goldziher/ai-rulez collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
- Multi-stage builds: full toolchain builder → minimal runtime (Alpine/Distroless/Scratch).
- Layer caching: copy dependency manifests first, then source — maximize cache hits.
- Security: non-root user, vulnerability scanning (fail on HIGH/CRITICAL), no secrets in the image.
- Signal handling: use an init process (tini/dumb-init) as PID 1, and define a
HEALTHCHECK. - Tagging: semantic version + commit SHA, never reuse a tag.
Files (ai-rulez)
-
SKILL.md 732 B
--- name: container-standards description: "Container build and runtime: multi-stage builds, minimal base image, cache-friendly layers, non-root user, image scanning, no baked secrets, init process, healthcheck, tagging. Use when writing a Dockerfile or image pipeline." --- - **Multi-stage builds**: full toolchain builder → minimal runtime (Alpine/Distroless/Scratch). - **Layer caching**: copy dependency manifests first, then source — maximize cache hits. - **Security**: non-root user, vulnerability scanning (fail on HIGH/CRITICAL), no secrets in the image. - **Signal handling**: use an init process (tini/dumb-init) as PID 1, and define a `HEALTHCHECK`. - **Tagging**: semantic version + commit SHA, never reuse a tag.
Reviews (0)
No reviews yet.
Comments
Sign in to join the conversation.
No comments yet. Start the conversation.