docker-setup

docker-setup is a command for Claude Code from Insight-Services-APAC/ingenious. It costs 0 tokens per session (311 once invoked), scanned A, original, MIT.

A Docker setup command for creating or improving a Dockerfile and a .dockerignore file. Docker packages an application and its dependencies so it can run in a consistent environment.

In plain words
What is it for?
Use it to containerize Flask or FastAPI applications, build and run the image locally, test endpoints, and clean up the test container.
Why use it?
It helps turn an existing application into a locally testable container and checks that the container starts and serves requests. It also keeps unnecessary project files out of the image.

Command for Claude Code

Written for Claude Code: installed under .claude/.

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 commands/insight-services-apac/ingenious/docker-setup
Clone the repo
git clone --depth 1 https://github.com/Insight-Services-APAC/ingenious

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docker-setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/insight-services-apac/ingenious/docker-setup.svg)](https://agentmods.dev/commands/insight-services-apac/ingenious/docker-setup)
Your own site
<a href="https://agentmods.dev/commands/insight-services-apac/ingenious/docker-setup"><img src="https://agentmods.dev/badge/commands/insight-services-apac/ingenious/docker-setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 311 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.1 $0.00000 $0.00311
Opus 5 $0.00000 $0.00156
Sonnet 5 $0.00000 $0.00062
Haiku 4.5 $0.00000 $0.00031

Measured yesterday against content hash a2d806c05472, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

docker-setup 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 yesterday.

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/commands/infra/docker-setup.md · 25 lines

What it actually says

Create or improve Dockerfile and .dockerignore for this project, then build and test locally to ensure it works properly.

If Dockerfile and .dockerignore don't exist:

  1. Analyze the project structure and dependencies to determine the application type (Flask, FastAPI, etc.)
  2. Create an optimized Dockerfile using appropriate base image and multi-stage builds if beneficial
  3. For Flask apps: use gunicorn as the WSGI server
  4. For FastAPI apps: use uvicorn as the ASGI server
  5. Create a comprehensive .dockerignore file to exclude unnecessary files
  6. Ensure proper health checks and security best practices

If Dockerfile and .dockerignore already exist:

  1. Review and optimize existing files if needed
  2. Proceed to testing phase

Testing phase (always run these steps):

  1. Run colima start to ensure Docker daemon is running on macOS
  2. Build the Docker image without BuildKit: DOCKER_BUILDKIT=0 docker build -t app-test .
  3. Run the container with appropriate port mapping: docker run -p 8000:8000 app-test (adjust port as needed)
  4. Test that the application starts successfully and serves requests
  5. Verify all endpoints are accessible and working as expected
  6. Stop and clean up test containers
  7. If issues are found, debug iteratively by updating Dockerfile/dockerignore and rebuilding until everything works

Focus on creating a production-ready, secure, and efficient containerized application.

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. yesterday First seen · 25 lines · 0 tokens per session scan A a2d806c05472

Subscribe to this mod's changes

docker-setup is a command published in the GitHub repository Insight-Services-APAC/ingenious (24 stars, last pushed 7mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 311 tokens. 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-09-04.