AGENT SKILL
docker
暂无简介
- License 许可
- MIT
- 所属仓库
- khlifah/AI
- 最近更新
- 2026-08-22
- Stars
- ★ 0
- Forks
- 0
03 SKILL.md 正文
Docker & Containerization Skill
Key Principles
- Multi-stage Builds: Always use multi-stage builds to minimize image size and improve security.
- Non-root Execution: Never run application processes as root inside containers. Use
USER nodeor create a dedicated app user. - Layer Optimization: Order
Dockerfileinstructions from least-frequently changed to most-frequently changed to maximize cache usage. - Environment Configuration: Pass configuration via environment variables, never hardcode secrets or environment-specific values in images.
- Health Checks: Include
HEALTHCHECKinstructions in production Dockerfiles.