Agent skill
docker-cicd-patterns
Use this skill when creating or modifying Dockerfiles, docker-compose files, GitHub Actions workflows, or deployment pipelines. Triggers on: container builds, CI/CD configuration, deployment automation, Azure Container App Jobs, Docker Hub, or any mention of "Docker", "container", "GitHub Actions", "workflow", "CI/CD", "pipeline", "deploy", or "build".
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/docker-cicd-patterns
SKILL.md
Docker & CI/CD Patterns — DoclingOptimisation
Dockerfile Standards
- Multi-stage build: builder (compile deps, pre-fetch models) + runtime (slim, non-root)
- Base image:
python:3.14-slim-bookworm(pinned, not:latest) - Non-root user:
docling:docling - uv for package management —
uv sync --frozen --no-dev - Models pre-fetched at build time (no network at runtime)
- CPU-only PyTorch from
https://download.pytorch.org/whl/cpu .dockerignoreexcludes .git, .claude, .history, .firecrawl, logs, research docs
Docker Compose (Local Dev)
- Compose-native limits (
mem_limit,cpus) for Docker Desktop - Volume mounts:
./input:/home/docling/input:ro,./output:/home/docling/output - Default threads:
DOCLING_NUM_THREADS=10for local benchmarking
Azure Container App Job
- This is a batch/one-shot workload — use Container App Jobs, NOT revision-based apps
- CPU profile: 4 vCPUs / 8 Gi, set
DOCLING_NUM_THREADS=4 - GPU profile: NC8as-T4 / 8 vCPUs / 56 Gi, requires CUDA PyTorch build, set
DOCLING_DEVICE=cuda - Container registry: Docker Hub (migration to ACR planned)
GitHub Actions
- Separate CI (lint, format-check, type-check) from CD (build, push to Docker Hub)
- Use
astral-sh/setup-uv@v4for uv in CI - Use
--frozenfor reproducible installs - Pin action versions
- Use concurrency groups to cancel redundant runs
- For Docker Hub: use
docker/login-action@v3+docker/build-push-action@v6
Image Tagging
latestfor main branchsha-<short-sha>for every push- Semantic version tags for releases
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?