docker

docker is a skill for Claude Code, Codex from Insajin/autopus-adk. It costs 19 tokens per session (763 once invoked), scanned A, original, MIT.

A Docker setup skill for creating Dockerfiles and Docker Compose configurations. Docker packages an application and its dependencies into containers, while Compose defines several containers and how they work together.

In plain words
What is it for?
Use it to containerize applications, define services such as an app and database, configure environment variables and health checks, and build smaller images with multi-stage Dockerfiles.
Why use it?
It helps create repeatable application environments and avoids manually configuring the same build and services on every machine. It also covers multi-stage builds and image-layer caching for the shown setup.

Skill for Claude CodeCodex

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 skills/insajin/autopus-adk/docker
Any agent
npx skills add Insajin/autopus-adk --skill docker
Clone the repo
git clone --depth 1 https://github.com/Insajin/autopus-adk

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/insajin/autopus-adk/docker.svg)](https://agentmods.dev/skills/insajin/autopus-adk/docker)
Your own site
<a href="https://agentmods.dev/skills/insajin/autopus-adk/docker"><img src="https://agentmods.dev/badge/skills/insajin/autopus-adk/docker.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 763 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.00019 $0.00763
Opus 5 $0.00010 $0.00381
Sonnet 5 $0.00004 $0.00153
Haiku 4.5 $0.00002 $0.00076

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

Security

Grade A, and why

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 5d 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.

.omp/skills/docker/SKILL.md · 112 lines

What it actually says

Docker Skill

효율적이고 안전한 컨테이너 이미지를 빌드하는 스킬입니다.

Go 멀티스테이지 Dockerfile

# Stage 1: 빌드
FROM golang:1.23-alpine AS builder
RUN apk add --no-cache git ca-certificates
WORKDIR /app

COPY go.mod go.sum ./
RUN go mod download

COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o /bin/app ./cmd/...

# Stage 2: 실행
FROM alpine:3.19
RUN apk add --no-cache ca-certificates tzdata
RUN adduser -D -g '' appuser

COPY --from=builder /bin/app /bin/app
USER appuser
EXPOSE 8080
ENTRYPOINT ["/bin/app"]

Docker Compose

services:
  app:
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - "8080:8080"
    environment:
      - DATABASE_URL=postgres://user:pass@db:5432/app
    depends_on:
      db:
        condition: service_healthy

  db:
    image: postgres:16-alpine
    environment:
      POSTGRES_USER: user
      POSTGRES_PASSWORD: pass
      POSTGRES_DB: app
    volumes:
      - pgdata:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U user"]
      interval: 5s
      retries: 5

volumes:
  pgdata:

이미지 최적화

레이어 캐싱 순서

# 변경 빈도 낮은 것부터 (캐시 활용 극대화)
COPY go.mod go.sum ./     # 1. 의존성 정의 (거의 안 바뀜)
RUN go mod download       # 2. 의존성 다운로드
COPY . .                  # 3. 소스 코드 (자주 바뀜)
RUN go build ...          # 4. 빌드

이미지 크기 줄이기

베이스 이미지 크기 용도
scratch 0MB 정적 바이너리 (CGO 없이)
alpine ~5MB CA 인증서, 쉘 필요 시
distroless ~2MB 보안 중시 프로덕션
golang ~800MB 빌드 스테이지만

.dockerignore

.git
*.md
*.out
coverage*
vendor/

보안 원칙

  • root 실행 금지: USER appuser 필수
  • 시크릿 빌드 인자 금지: ARG로 비밀번호 전달하지 않기
  • 최소 베이스 이미지: alpine 또는 distroless
  • 이미지 스캐닝: docker scout, trivy

체크리스트

  • 멀티스테이지 빌드 사용
  • 비-root 유저로 실행
  • .dockerignore 설정
  • 레이어 캐싱 순서 최적화
  • 헬스체크 설정 (Compose)
  • 시크릿 하드코딩 없음
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. 5d ago First seen · 112 lines · 19 tokens per session scan A 4a3f0d9f925e

Subscribe to this mod's changes

docker is a skill published in the GitHub repository Insajin/autopus-adk (109 stars, last pushed today), licensed MIT. It adds 19 tokens to every session and 763 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.