dockerfile

dockerfile is a command for Claude Code from rohitg00/awesome-claude-code-toolkit. It costs 0 tokens per session (697 once invoked), scanned A, original, Apache-2.0.

A command that creates a multi-stage Dockerfile suited to the current project. Dockerfiles describe how to package an application into a container, and multi-stage builds keep build tools out of the final image.

In plain words
What is it for?
Use it to containerize Node.js, Python, Go, Rust, or Java applications with separate dependency, build, and runtime stages.
Why use it?
It removes the need to design the container stages, base images, dependency caching, runtime setup, and startup command manually.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the deploy-pilot plugin — 3 commands shipped together

Good fit Use it to containerize Node.js, Python, Go, Rust, or Java applications with separate dependency, build, and runtime stages.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/rohitg00/awesome-claude-code-toolkit/dockerfile
About the project

Awesome Claude Code Toolkit is a curated collection of extensions and configuration for Claude Code, including agents, skills, commands, plugins, hooks, rules, templates, MCP configurations, and companion apps. It is for Claude Code users who want ready-made workflows and integrations for different development tasks. The catalogue add-ons are selected components from this toolkit.

rohitg00/awesome-claude-code-toolkit · 2,717 stars · on GitHub

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.

Clone the repo
git clone --depth 1 https://github.com/rohitg00/awesome-claude-code-toolkit

Made for: Claude Code.

Or install deploy-pilot, the plugin that ships this one along with the rest of its 3 commands.

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 dockerfile

README.md
[![agentmods](https://agentmods.dev/badge/commands/rohitg00/awesome-claude-code-toolkit/dockerfile/github.svg)](https://agentmods.dev/commands/rohitg00/awesome-claude-code-toolkit/dockerfile)
Your own site
<a href="https://agentmods.dev/commands/rohitg00/awesome-claude-code-toolkit/dockerfile"><img src="https://agentmods.dev/badge/commands/rohitg00/awesome-claude-code-toolkit/dockerfile/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 dockerfile

Your own site · 80×15
<a href="https://agentmods.dev/commands/rohitg00/awesome-claude-code-toolkit/dockerfile"><img src="https://agentmods.dev/badge/commands/rohitg00/awesome-claude-code-toolkit/dockerfile.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 697 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00697
Opus 5.5 $0.00000 $0.00279
Sonnet 5.5 $0.00000 $0.00139
Haiku 4.5 $0.00000 $0.00070

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

Security

Grade A, and why

dockerfile 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 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.

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.

plugins/deploy-pilot/commands/dockerfile.md · 65 lines

How it starts

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

/deploy-pilot:dockerfile

Generate an optimized multi-stage Dockerfile for the current project.

Process

  1. Detect the project type and runtime:

    • Check for package.json (Node.js), requirements.txt/pyproject.toml (Python), go.mod (Go), Cargo.toml (Rust), pom.xml/build.gradle (Java)
    • Identify the framework (Next.js, FastAPI, Gin, Actix, Spring Boot, etc.)
    • Read the existing entrypoint script or start command
  2. Select the appropriate base image:

    • Use official slim/alpine variants for smaller image sizes
    • Pin to a specific version tag, never use latest
    • For Node.js: node:22-alpine for runtime, node:22 for build
    • For Python: python:3.12-slim for runtime
    • For Go: golang:1.23-alpine for build, gcr.io/distroless/static-debian12 for runtime
    • For Rust: rust:1.82-slim for build, debian:bookworm-slim for runtime
  3. Structure the Dockerfile with these stages:

Stage 1: Dependencies

  • Copy only dependency manifests (package.json, go.sum, Cargo.lock, etc.)
  • Install dependencies in a cached layer
  • This stage changes only when dependencies change, maximizing cache hits

Stage 2: Build

  • Copy source code
  • Run the build command (compile, transpile, bundle)
  • Run tests if a --with-tests flag is specified
  • Prune dev dependencies after build

Stage 3: Runtime

  • Start from a minimal base image
  • Copy only the built artifacts and production dependencies
  • Set a non-root user for security
  • Configure health check with appropriate endpoint or command
  • Set resource limits via labels where applicable
  • Define the entrypoint and default command
  1. Apply these optimizations:
    • Order COPY instructions from least to most frequently changed
    • Use .dockerignore patterns: suggest creating one if missing
    • Set NODE_ENV=production or equivalent environment variables
    • Use COPY --from=build to minimize final image layers
    • Add LABEL instructions for maintainer, version, and description
    • Set EXPOSE for the application port
    • Use tini or dumb-init as PID 1 for proper signal handling in Node.js

Read the full file on GitHub · 65 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 · 65 lines · 0 tokens per session scan A 232dc937265f

Subscribe to this mod's changes

dockerfile is a command published in the GitHub repository rohitg00/awesome-claude-code-toolkit (2,717 stars, last pushed 5mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 697 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-03.