AGENT SKILL

docker

暂无简介

License 许可
MIT
所属仓库
khlifah/AI
最近更新
2026-08-22
Stars
★ 0
Forks
0

03 SKILL.md 正文

Docker & Containerization Skill

Key Principles

  1. Multi-stage Builds: Always use multi-stage builds to minimize image size and improve security.
  2. Non-root Execution: Never run application processes as root inside containers. Use USER node or create a dedicated app user.
  3. Layer Optimization: Order Dockerfile instructions from least-frequently changed to most-frequently changed to maximize cache usage.
  4. Environment Configuration: Pass configuration via environment variables, never hardcode secrets or environment-specific values in images.
  5. Health Checks: Include HEALTHCHECK instructions in production Dockerfiles.

04 同仓库更多 Skills