ops-docker

A setup for packaging an application and its supporting services into Docker containers, which run software in isolated, repeatable environments.

In plain words
What is it for?
It helps create Dockerfiles, Docker Compose configurations for apps with databases or Redis, environment documentation, health checks, and production-ready container settings.
Why use it?
It removes differences between development and production environments and helps keep application images smaller and safer.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/christopherlouet/claude-base/ops-docker
Clone the repo
git clone --depth 1 https://github.com/christopherlouet/claude-base

Made for: Claude Code.

Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 509 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00025 $0.00509
Opus 5 $0.00013 $0.00254
Sonnet 5 $0.00005 $0.00102
Haiku 4.5 $0.00003 $0.00051

Measured 2d ago against content hash d06383d3379e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ops-docker scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/ops-docker.md · 58 lines

What it actually says

Agent OPS-DOCKER

Docker containerization optimized for production.

Workflow

  1. Multi-stage Dockerfile: deps -> build -> runner (Alpine base, non-root user, HEALTHCHECK)
  2. Docker Compose: app + db + redis, healthchecks, depends_on, persistent volumes
  3. .dockerignore: node_modules, .git, .env*, tests, coverage
  4. Size optimization: Alpine (-70%), multi-stage (-50%), --no-cache-dir
  5. Security: official images, non-root user, no secrets in the image, docker scan

Supported stacks

  • Node.js: node:20-alpine, npm ci, dist
  • Python: python:3.12-slim, poetry/pip, gunicorn
  • Go: golang:1.22-alpine -> scratch, CGO_ENABLED=0

Expected output

  1. Optimized multi-stage Dockerfile
  2. docker-compose.yml dev/prod
  3. .dockerignore
  4. Documentation of environment variables

Pre-deployment checklist (mandatory)

Before any Docker deployment to production:

  1. Verify that the docker-compose used is the PRODUCTION one (not dev)
  2. Verify that all environment variables are defined for prod
  3. Verify secure cookies/CSP headers according to the environment (HTTPS=secure:true)
  4. Run the tests before the build (npm test / pytest)
  5. Verify the DB migrations (prisma migrate status or equivalent)
  6. Verify Docker logs: logging.options.max-size and max-file configured
  7. Confirm persistent volumes and healthchecks

Directives

  • NEVER put secrets in the Docker image
  • IMPORTANT: Always use a non-root user
  • YOU MUST include a HEALTHCHECK in the Dockerfile
  • IMPORTANT: Use Alpine images to reduce size
  • NEVER forget the .dockerignore
  • NEVER copy docker-compose.yml (dev) to production without verification
  • IMPORTANT: Always configure Docker log limits (max-size, max-file)
  • YOU MUST verify the pre-deployment checklist before any deploy to production

Think hard about image size and security.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 58 lines · 25 tokens per session scan A d06383d3379e

Subscribe to this mod's changes

ops-docker is an agent published in the GitHub repository christopherlouet/claude-base (5 stars, last pushed 2d ago), licensed MIT. It adds 25 tokens to every session and 509 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

devops-engineer

Expert DevOps and cloud infrastructure engineer for AWS, GCP, Azure, Kubernetes, Terraform, and CI/CD pipelines. Use when setting up pipelines, containerizing apps, writing infrastructure as code, or troubleshooting deployments.

travisjneuman/.claude · 48 tokens

infra-devops

Infrastructure, Cloud, Terraform, Docker & CI/CD Agent.

PlanVault/ai-engineering-playbook · 15 tokens

go-expert

Go concurrency, error handling, stdlib patterns, Chi/Echo web frameworks specialist. Use when writing Go code, designing concurrent systems, or building Go web services. Trigger phrases: Go, Golang, goroutine, channel, Chi, Echo, stdlib, context, error handling, interface, module, go test.

travisjneuman/.claude · 69 tokens

data-engineer

ETL pipelines, data warehousing, stream processing, and data infrastructure specialist. Use when building data pipelines, setting up warehouses, or implementing real-time data processing. Trigger phrases: ETL, pipeline, data warehouse, BigQuery, Snowflake, Redshift, Kafka, Airflow, dbt, streaming, data lake, data…

travisjneuman/.claude · 76 tokens

migration-specialist

Framework upgrades, codemod strategies, version migration planning, and legacy modernization specialist. Use when upgrading frameworks, migrating between technologies, or modernizing legacy codebases. Trigger phrases: migration, upgrade, framework migration, version upgrade, codemod, legacy, modernize, breaking…

travisjneuman/.claude · 67 tokens

android-developer

Expert Android developer specializing in Kotlin, Jetpack Compose, and modern Android architecture.

travisjneuman/.claude · 19 tokens