본문으로 건너뛰기
cccskills
무료GitHub에 공개

docker-setup

Docker setup: Dockerfile best practices, multi-stage, compose, security, size optimization.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SebastianLuser/claude-code-arcane스타 3(GitHub 3 + cccskills 0)
연동 도구Docker

실행 점수 미검증

설치 방법 보기

포함된 파일(5)

  • SKILL.md3.7 KB
  • references/anti-patterns.md560 B
  • references/checklists.md2.4 KB
  • references/compose-and-debugging.md2.8 KB
  • references/size-optimization.md322 B

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

docker-setup — Docker & Compose Setup

Quick Start Checklist — Setup completo desde cero

  • .dockerignore creado antes de cualquier COPY (excluye .git, node_modules, .env, coverage, *.md)
  • Dockerfile multi-stage: stage builder separado del stage runtime
  • Base image con tag fijo, nunca :latest (ej: golang:1.22-alpine, node:20-alpine)
  • Dependencias copiadas e instaladas ANTES del código fuente (cache de layers)
  • Stage runtime usa imagen mínima: distroless (Go) o node:20-alpine (TS) o nginx:alpine (React)
  • USER nonroot o usuario no-root en stage runtime
  • HEALTHCHECK presente en cada servicio
  • Signal handler: tini/dumb-init en Node (Go nativo); CMD con exec form
  • docker-compose.yml con depends_on: condition: service_healthy
  • docker-compose.override.yml para dev-only (volúmenes, puertos) — no commiteado a prod
  • Secrets nunca en ENV ni en build args — solo via env vars en runtime o mounts
  • trivy image o docker scout en CI antes de push al registry
  • Runtime endurecido: read_only, cap_drop: [ALL], no-new-privileges, límites de memoria y PIDs (ver references/checklists.md)

Generate production-ready Dockerfiles and docker-compose for Go, TypeScript, and React stacks.

Principles

  1. Multi-stage builds — build != runtime. Final image is lean.
  2. Non-root user — never run as root in runtime stage
  3. Minimal base — distroless or alpine for runtime
  4. .dockerignore — exclude node_modules, .env, .git from build context
  5. Layer caching — copy dependency files before source code
  6. Health checks on all services
  7. Secrets via env vars / mounts — never in Dockerfile or image layers

Discovery questions

  1. Stack: Go / TS (Fastify/Express) / React+Vite / monorepo
  2. External services: Postgres / Redis / Kafka / others
  3. Target: dev local only / prod only / both
  4. Registry: GHCR / ECR / GCR
  5. Deploy target: K8s / ECS / Cloud Run

Base image selection

StackBuild stageRuntime stage
Gogolang:<version>-alpinegcr.io/distroless/static-debian12:nonroot
Node/TSnode:<version>-alpinenode:<version>-alpine + dumb-init/tini
React (static)node:<version>-alpinenginx:<version>-alpine

Dockerfile best practices checklist

→ Read references/checklists.md for Dockerfile best practices (10 items), security checklist (8 items), runtime hardening, and health check patterns

Compose decisions

ConcernDevProd
Build targetbuilder stage (for hot reload)runtime stage
VolumesSource mounted for live reloadNone (baked in)
Env vars.env file, LOG_LEVEL=debugInjected by orchestrator
PortsExposed to hostInternal only (behind LB)
Depends_oncondition: service_healthyManaged by orchestrator

Use docker-compose.override.yml for dev-only settings (auto-applied, not committed to prod).

→ Read references/compose-and-debugging.md for multiple compose files and config, profiles, watch mode, multi-platform builds, and a debugging table (exit codes, healthchecks, networking, volumes, disk)

Size optimization

→ Read references/size-optimization.md for image size reduction techniques

Anti-patterns

→ Read references/anti-patterns.md for 8 common Docker anti-patterns

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Plan, design, and implement A/B tests and experiments with statistical rigor. Covers hypothesis frameworks, sample sizing, metrics, and result analysis.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SebastianLuser/claude-code-arcane32026년 10월 27일 업데이트

Web/mobile accessibility decision guide: WCAG 2.2 AA, ARIA, keyboard nav, focus management, contrast, testing. Use for: a11y, accessibility, wcag, aria, screen reader, keyboard, contrast.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SebastianLuser/claude-code-arcane32026년 10월 27일 업데이트

Generate, iterate, and scale ad creative for paid advertising across Google, Meta, LinkedIn, and X. Covers platform specs, creative frameworks, and quality validation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SebastianLuser/claude-code-arcane32026년 10월 27일 업데이트

Musica interactiva para juegos: layering vertical, re-secuenciacion horizontal, stingers, reglas de transicion con sync points, y mapeo de estados de gameplay a musica. Usar para: musica adaptativa, sistema de musica dinamica, transiciones musicales, combat music.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SebastianLuser/claude-code-arcane32026년 10월 27일 업데이트

Design multi-agent systems, create agent architectures, define communication patterns, and build autonomous agent workflows with structured evaluation frameworks.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SebastianLuser/claude-code-arcane32026년 10월 27일 업데이트

Inter-agent communication protocol for C-suite agent teams. Defines invocation syntax, loop prevention, isolation rules, response formats, and quality loops.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SebastianLuser/claude-code-arcane32026년 10월 27일 업데이트

SebastianLuser의 스킬 모두 보기

이 스킬의 문제 신고