deploy_to_docker

A command that builds a Docker image and starts or replaces the project’s container. Docker packages an application so it can run consistently in an isolated container.

In plain words
What is it for?
Use it to deploy the MCP Task Orchestrator, build without starting it, run with a chosen image tag, or reconfigure its REST connection and mounted settings.
Why use it?
It simplifies rebuilding and redeploying the service while reusing the current container settings when appropriate.

Command 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 commands/jpicklyk/task-orchestrator/deploy_to_docker
Clone the repo
git clone --depth 1 https://github.com/jpicklyk/task-orchestrator

Made for: Claude Code.

Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,932 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.00023 $0.02932
Opus 5 $0.00012 $0.01466
Sonnet 5 $0.00005 $0.00586
Haiku 4.5 $0.00002 $0.00293

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

Security

Grade A, and why

deploy_to_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/commands/deploy_to_docker.md · 193 lines

How it starts

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

Deploy to Docker

Build the MCP Task Orchestrator Docker image and start (or redeploy) the detached HTTP container that the active .mcp.json connects to. The Dockerfile handles its own Gradle build internally — no local build step needed.

On every deploy the command detects the current container's settings and defaults to reusing them, so you never have to re-specify things like API_AUTH_MODE=none after the first time. You can always review or change them via the chooser.

Usage: /deploy_to_docker [image-tag] [--build-only] [--run] [--reuse]

Default (no flags): Build the image, detect the existing container's config, then present a [Reuse / Reconfigure] chooser. Reuse redeploys with the same settings; Reconfigure walks the REST-mode / config-mount prompts. Matches the active .mcp.json (type: http, url: http://localhost:3001/mcp) — reachable after /mcp reconnect mcp-task-orchestrator.

Arguments:

  • image-tag (optional): Docker image tag. Default task-orchestrator:current. A bare name like devtask-orchestrator:dev.
  • --build-only: Build the image only; start no container; no prompts.
  • --run / --reconfigure: Build, then go straight to the reconfigure prompts (skip the reuse chooser) — including STDIO/HTTP transport choice.
  • --reuse: Build, then redeploy with the detected settings without prompting (non-interactive redeploy).

Examples:

  • /deploy_to_docker — build, then Reuse-or-Reconfigure chooser
  • /deploy_to_docker --reuse — rebuild + redeploy identical settings, no prompts
  • /deploy_to_docker --run — build + full interactive reconfigure
  • /deploy_to_docker --build-only — build image only

Workflow

Step 1: Resolve Image Tag

  • TARGET=runtime-current, default tag task-orchestrator:current, data volume mcp-task-data.
  • A non--- tag argument is used as-is; a tag with no : gets task-orchestrator: prepended; no arg → default.

Step 2: Build Docker Image

docker build --target runtime-current -t <image-tag> .

Multi-stage build compiles from source — no prior ./gradlew build.

Read the full file on GitHub · 193 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. 2d ago First seen · 193 lines · 23 tokens per session scan A 60b1b4da4ff6

Subscribe to this mod's changes

deploy_to_docker is a command published in the GitHub repository jpicklyk/task-orchestrator (205 stars, last pushed 28d ago), licensed MIT. It adds 23 tokens to every session and 2,932 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-30.