dare-docker

dare-docker is a command for Claude Code from dewtech-technologies/dare-method. It costs 0 tokens per session (1,278 once invoked), scanned C, original, MIT.

A Docker setup generator and reviewer for creating Dockerfiles and Docker Compose files. Docker packages an application and its dependencies into isolated containers so it can run consistently across environments.

In plain words
What is it for?
Use it to containerize an application, generate a Dockerfile or Compose file, add a health check, or review an existing setup.
Why use it?
It removes much of the guesswork from container setup and checks existing files for common security and reliability problems.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o /server ./cmd/server.

Good fit Use it to containerize an application, generate a Dockerfile or Compose file, add a health check, or review an existing setup.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/dewtech-technologies/dare-method
agentmods
npx agentmods add commands/dewtech-technologies/dare-method/dare-docker

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 dare-docker

README.md
[![agentmods](https://agentmods.dev/badge/commands/dewtech-technologies/dare-method/dare-docker/github.svg)](https://agentmods.dev/commands/dewtech-technologies/dare-method/dare-docker)
Your own site
<a href="https://agentmods.dev/commands/dewtech-technologies/dare-method/dare-docker"><img src="https://agentmods.dev/badge/commands/dewtech-technologies/dare-method/dare-docker/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dare-docker

Your own site · 80×15
<a href="https://agentmods.dev/commands/dewtech-technologies/dare-method/dare-docker"><img src="https://agentmods.dev/badge/commands/dewtech-technologies/dare-method/dare-docker.svg" alt="Reviewed on agentmods" width="80" 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 1,278 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.01278
Opus 5.5 $0.00000 $0.00511
Sonnet 5.5 $0.00000 $0.00256
Haiku 4.5 $0.00000 $0.00128

Measured 1mo ago against content hash b468805bb9b6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

dare-docker scanned grade C with 1 finding 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 1mo 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf /var/lib/apt/lists/*
implementations/claude/.claude/commands/dare-docker.md · 208 lines

How it starts

The opening of the file, as written. The whole thing — 208 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/dare-docker

Containerização DARE com Dockerfile e docker-compose seguros, performantes e idiomáticos. Multi-stage, usuário não-root, healthchecks, redes isoladas.

Como usar

/dare-docker                        # detecta stack e gera Dockerfile + compose + .dockerignore
/dare-docker dockerfile             # só Dockerfile
/dare-docker compose                # só docker-compose.yml
/dare-docker review                 # audita Dockerfile/compose existente

Padrões para Dockerfile

1. Multi-stage build (obrigatório)

Separe build (compiladores) de runtime (artefato + libs mínimas).

2. Imagens base

  • Alpine ou distroless quando possível
  • Tag explícita (php:8.3-fpm-alpine, nunca latest)
  • Pin de versão

3. Usuário não-root

RUN adduser -D -u 1000 appuser
USER appuser

4. Cache de camadas

Ordem: FROM → install deps → COPY deps lockfile → install deps → COPY src → build.

5. Limpeza na mesma camada

RUN apt-get update && \
    apt-get install -y --no-install-recommends pkg && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

Padrões por stack

PHP/Laravel

FROM php:8.3-fpm-alpine
RUN docker-php-ext-install pdo_pgsql opcache bcmath
WORKDIR /var/www/html
COPY composer.json composer.lock ./
RUN composer install --no-dev --no-interaction --optimize-autoloader
COPY . .
USER www-data
EXPOSE 9000
CMD ["php-fpm"]

Python/FastAPI

FROM python:3.11-slim
RUN useradd -m -u 1000 appuser
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY --chown=appuser:appuser . .
USER appuser
EXPOSE 8000
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]

Go

FROM golang:1.22-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o /server ./cmd/server

FROM scratch
COPY --from=builder /server /server
EXPOSE 8080
USER 1000:1000
ENTRYPOINT ["/server"]

Read the full file on GitHub · 208 lines

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. 1mo ago First seen · 208 lines · 0 tokens per session scan C b468805bb9b6

Subscribe to this mod's changes

dare-docker is a command published in the GitHub repository dewtech-technologies/dare-method (5 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,278 tokens. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.