docker_packaging

docker_packaging is a skill for Claude Code, Codex from fdueblab/Micro-Agent. It costs 0 tokens per session (326 once invoked), scanned A, original, MIT.

A set of rules and templates for packaging a Python MCP service in Docker. Docker packages an application and its dependencies into a repeatable container that can run on another machine.

In plain words
What is it for?
Use it to create a Dockerfile, requirements.txt, and docker-compose.yml for a Python MCP service. It also covers adding system libraries and configuring the service port.
Why use it?
It reduces differences between development and deployment environments by defining the base image, dependencies, port, startup command, and excluded files.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create a Dockerfile, requirements.txt, and docker-compose.yml for a Python MCP service. It also covers adding system libraries and configuring the service port.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fdueblab/micro-agent/docker_packaging
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.

Any agent
npx skills add fdueblab/Micro-Agent --skill docker_packaging
Clone the repo
git clone --depth 1 https://github.com/fdueblab/Micro-Agent

Made for: Claude Code, Codex.

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_packaging

README.md
[![agentmods](https://agentmods.dev/badge/skills/fdueblab/micro-agent/docker_packaging/github.svg)](https://agentmods.dev/skills/fdueblab/micro-agent/docker_packaging)
Your own site
<a href="https://agentmods.dev/skills/fdueblab/micro-agent/docker_packaging"><img src="https://agentmods.dev/badge/skills/fdueblab/micro-agent/docker_packaging/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 docker_packaging

Your own site · 80×15
<a href="https://agentmods.dev/skills/fdueblab/micro-agent/docker_packaging"><img src="https://agentmods.dev/badge/skills/fdueblab/micro-agent/docker_packaging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 326 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 51
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
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.00326
Opus 5.5 $0.00000 $0.00130
Sonnet 5.5 $0.00000 $0.00065
Haiku 4.5 $0.00000 $0.00033

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

Security

Grade A, and why

docker_packaging 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 22d 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.

workspace/skills/docker_packaging/SKILL.md · 53 lines

What it actually says

你是容器化部署专家。为 Python MCP 服务生成 Docker 配置时,遵循以下规范:

Dockerfile 模板

FROM python:3.10-slim

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

COPY . .

EXPOSE 8000

CMD ["python", "server.py"]

requirements.txt 必要依赖

MCP 服务必须包含以下依赖:

mcp>=1.4.0
starlette
uvicorn
httpx

根据原始代码的依赖补充其他包。如果原项目有 requirements.txt,合并后去重。

docker-compose.yml 模板

version: '3.8'
services:
  mcp-service:
    build: .
    ports:
      - "8000:8000"
    restart: unless-stopped
    environment:
      - PYTHONUNBUFFERED=1

关键规则

  • 基础镜像固定 python:3.10-slim,保持轻量
  • pip 安装源使用清华镜像加速
  • EXPOSE 端口与 server.py 中 uvicorn 端口一致
  • 不要在镜像中包含 .git、pycache、.env 等文件
  • 如原代码依赖系统库(如 gcc),在 pip install 前用 apt-get 安装
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. 22d ago Changed f3a936342687
  2. 1mo ago First seen · 53 lines · 0 tokens per session scan A fcf3dfda4774

Subscribe to this mod's changes

docker_packaging is a skill published in the GitHub repository fdueblab/Micro-Agent (101 stars, last pushed 17d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 326 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-08-30.