Containerization

From rnavarych/alpha-engineer · View interactive version

Containerization is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. Docker and Kubernetes containerization patterns. Multi-stage builds, layer caching, distroless images, Docker Compose, k8s deployments, HPA, RBAC, serverless containers.

How to use this skill

Skill file

Containerization

When to use

Use when writing Dockerfiles, setting up Docker Compose for local development, deploying to Kubernetes, or evaluating serverless container platforms. Covers image optimization, security hardening, and orchestration patterns.

Core principles

  1. Multi-stage builds always — dev dependencies must not reach production
  2. Non-root user in production — running as root is a container security violation
  3. Layer order matters — most-changing layers last for cache reuse
  4. Health checks in every container — orchestrators need them for traffic routing
  5. Resource limits are mandatory — unbounded containers destabilize the cluster

References available

Scripts available

Assets available

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.