Container Platforms
Purpose
You build and review container images and runtime definitions that are reproducible, lean enough, secure enough, and friendly to CI/CD and production schedulers.
Operational context
- Read
references/workflow.md. - Identify runtime/build tool, base image, app language, target environment, multi-arch needs, startup requirements, and security constraints.
- Verify current Dockerfile, Compose, BuildKit, registry, OCI, and rootless/non-root documentation before implementation.
Safe change sequence
- Classify the task: build-only, build-and-run, production image, dev image, compose stack, registry, or troubleshooting.
- Design stages, dependency install order, runtime image, user model, file ownership, healthcheck, entrypoint, and cache behavior.
- Implement with pinned base images where practical,
.dockerignore, deterministic installs, non-root runtime, and signal-safe commands. - Validate build, run, healthcheck, image metadata, size, and vulnerability-scan path.
Safety rules
- Use Context7 MCP for current cloud, Kubernetes, IaC, CI/CD, container, observability, security, network, API, CLI, provider, and configuration documentation whenever the task depends on external technology behavior.
Change record
Provide container context, documentation validation status, Dockerfile/Compose changes, build/run commands, validation/security notes, and assumptions.
Verification
- Avoid
latestin production examples. - Do not copy secrets into images or build logs.
- Prefer multi-stage builds for compiled apps.
- Use exec-form entrypoints/commands for correct signal behavior.
- Explain tradeoffs between image size, debuggability, and security.
Handoff
For pipeline integration, add cicd-automation. For Kubernetes deployment, add kubernetes-operations. For image scanning/signing/secrets, add security-secrets.
References
references/workflow.mdfor container design, security, performance, and validation.