dockerfile

dockerfile is a command for GitHub Copilot from saajunaid/caddis-plugin. It costs 12 tokens per session (493 once invoked), scanned A, original, MIT.

A command for creating a multi-stage Dockerfile. Dockerfiles describe how to build an application's container, and multi-stage builds use separate build and runtime stages.

In plain words
What is it for?
It helps create Dockerfiles for different programming languages and frameworks.
Why use it?
It helps set up a container build while separating build steps from the files needed to run the application.

Command for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt.

Good fit It helps create Dockerfiles for different programming languages and frameworks.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/saajunaid/caddis-plugin/dockerfile
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/saajunaid/caddis-plugin

Made for: GitHub Copilot.

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/saajunaid/caddis-plugin/dockerfile/github.svg)](https://agentmods.dev/commands/saajunaid/caddis-plugin/dockerfile)
Your own site
<a href="https://agentmods.dev/commands/saajunaid/caddis-plugin/dockerfile"><img src="https://agentmods.dev/badge/commands/saajunaid/caddis-plugin/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/saajunaid/caddis-plugin/dockerfile"><img src="https://agentmods.dev/badge/commands/saajunaid/caddis-plugin/dockerfile.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 493 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.00012 $0.00493
Opus 5.5 $0.00005 $0.00197
Sonnet 5.5 $0.00002 $0.00099
Haiku 4.5 $0.00001 $0.00049

Measured 1mo ago against content hash 36b74093e446, 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.

.github/prompts/dockerfile.prompt.md · 78 lines

How it starts

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

Multi-Stage Dockerfile

Create an efficient, production-ready multi-stage Dockerfile for the current project.

Instructions

  1. Detect the project's language, framework, and package manager from the codebase.
  2. Generate a multi-stage Dockerfile following the best practices below.
  3. Also generate a .dockerignore file if one doesn't exist.

Multi-Stage Structure

Organize stages in this order:

# Stage 1: Dependencies
FROM <base>:<version>-slim AS deps
# Install only production dependencies

# Stage 2: Build
FROM deps AS build
# Install dev dependencies, compile, transpile, etc.

# Stage 3: Runtime
FROM <minimal-base>:<version>-slim AS runtime
# Copy only built artifacts and production deps
# Set non-root user, healthcheck, entrypoint

Best Practices

Base Images

  • Use official, minimal base images (-slim, -alpine)
  • Pin exact version tags for reproducibility (e.g., python:3.12-slim, not python:latest)
  • Consider distroless images for the runtime stage

Layer Optimization

  • Copy dependency manifests first, install deps, then copy source code (maximizes cache)
  • Combine related RUN commands with && to reduce layers
  • Place frequently-changing steps (source code) after stable steps (dependencies)

Security

  • Run as a non-root user in the runtime stage (USER appuser)
  • Remove build tools and dev dependencies from the final image
  • Do not copy secrets, credentials, or .env files into the image
  • Set restrictive file permissions

Performance

  • Use HEALTHCHECK appropriate to the application type
  • Set production environment variables (e.g., NODE_ENV=production)
  • Use COPY --from=build to bring only necessary artifacts into runtime
  • Use build arguments (ARG) for values that vary between environments

.dockerignore

Generate a .dockerignore that excludes at minimum:

.git
node_modules
__pycache__
*.pyc
.env
.env.*
dist
build
coverage
.pytest_cache

Output

Provide the Dockerfile with comments explaining each stage and key decisions.

Read the full file on GitHub · 78 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 · 78 lines · 12 tokens per session scan A 36b74093e446

Subscribe to this mod's changes

dockerfile is a command published in the GitHub repository saajunaid/caddis-plugin (0 stars, last pushed today), licensed MIT. It adds 12 tokens to every session and 493 once invoked, about $0.0000 per session on Opus 5.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-09-09.