affaan-m/ECC

docker-patterns

Docker イメージの構築、最適化、マルチステージビルド、ネットワーク、ボリューム管理。本番環境デプロイメント用のベストプラクティス。

56Collecting
See how to use itView GitHub source
npx skills add https://github.com/affaan-m/ECC --skill "docs/ja-JP/skills/docker-patterns"
Automated source guide

Source checked Jul 28, 2026·Refresh due Oct 26, 2026

Reorganized from the pinned upstream SKILL.md

Turn docker-patterns's source instructions into a guide you can follow

According to the pinned SKILL.md from affaan-m/ECC: 本番環境対応のDocker イメージとコンテナ。

npx skills add https://github.com/affaan-m/ECC --skill "docs/ja-JP/skills/docker-patterns"
Check the pinned source

Best fit

  • Docker イメージの構築、最適化、マルチステージビルド、ネットワーク、ボリューム管理。本番環境デプロイメント用のベストプラクティス。

Bring this context

  • A concrete task that matches the documented purpose of docker-patterns.
  • The files, examples, or context the task depends on.
  • Your constraints, target environment, and definition of done.

Expected outputs

  • A result that follows the pinned docker-patterns instructions.
  • A concise record of assumptions, inputs used, and unresolved questions.
  • A final check against the source workflow and relevant permission signals.

Key source sections

Read docker-patterns through these 5 source sections

Sections are extracted automatically from the pinned SKILL.md and link back to the source.

01

使用時期

Dockerfile を書く

SKILL.md · 使用時期
Dockerfile を書くイメージサイズを最適化マルチステージビルド
02

Dockerfile ベストプラクティス

Review the “Dockerfile ベストプラクティス” section in the pinned source before continuing.

SKILL.md · Dockerfile ベストプラクティス
Review and apply the “Dockerfile ベストプラクティス” source section.
03

1. イメージサイズを最小化

Review the “1. イメージサイズを最小化” section in the pinned source before continuing.

SKILL.md · 1. イメージサイズを最小化
Review and apply the “1. イメージサイズを最小化” source section.
04

2. レイヤー最適化

Review the “2. レイヤー最適化” section in the pinned source before continuing.

SKILL.md · 2. レイヤー最適化
Review and apply the “2. レイヤー最適化” source section.

SkillSignal prompt templates

Provide the task, context, and acceptance criteria

These prompts were written by SkillSignal from the source structure; they are not upstream text.

Task-start prompt

Confirm source fit, inputs, and outputs before acting.

Use docker-patterns to help me with: [specific task]. Context: [files, data, or background]. Constraints: [environment, scope, and prohibited actions]. Before acting, check the pinned SKILL.md and explain which sections apply, what inputs are still missing, and what you will deliver.

Source-guided execution

Make the Agent explicitly follow the key extracted sections.

Apply the pinned docker-patterns source to [task]. Pay particular attention to these source sections: “使用時期”, “Dockerfile ベストプラクティス”, “1. イメージサイズを最小化”, “2. レイヤー最適化”, “キャッシュを活用するため、変更がない部分を上に”. Preserve the important decision at each step. Mark facts not covered by the source as “needs confirmation” instead of inventing them. Then verify the result against my acceptance criteria: [criteria].

Result-review prompt

Check omissions, permissions, and source drift before delivery.

Review the current docker-patterns result: (1) does it satisfy the original task; (2) were any applicable steps or limits in the pinned SKILL.md missed; (3) did it perform any unauthorized file, command, network, or data action; and (4) which conclusions remain unverified? List issues first, then fix only what the source or user authorization supports.

Output checklist

Verify each item before delivery

The task matches the purpose documented in the SKILL.md.

The source section “使用時期” has been checked.

The source section “Dockerfile ベストプラクティス” has been checked.

The source section “1. イメージサイズを最小化” has been checked.

The source section “2. レイヤー最適化” has been checked.

Inputs, constraints, and acceptance criteria are explicit.

Unverified facts, compatibility, and outcome claims are clearly marked.

Any file, command, network, or data action has been reviewed.

Choose a different workflow

When another Skill is the better fit

FAQ

What does docker-patterns do?

本番環境対応のDocker イメージとコンテナ。

How do I start using docker-patterns?

The catalog detected this source-specific install command: npx skills add https://github.com/affaan-m/ECC --skill "docs/ja-JP/skills/docker-patterns". Inspect the command and pinned source before running it.

Which Agent platforms does it declare?

No dedicated Agent platform is declared in the pinned source record.

Repository stars
234,327
Repository forks
35,711
Quality
56/100
Source repository last pushed

Quality breakdown

Based on traceable docs and repository signals; stars are not treated as quality.

56/100
Documentation17/30
Specificity7/25
Maintenance20/20
Trust signals12/25
View original Skill.mdThis page is parsed directly from the repository SKILL.md without editorial rewriting. Collected: Jul 28, 2026 · about 1 min

Docker パターン

本番環境対応のDocker イメージとコンテナ。

使用時期

  • Dockerfile を書く
  • イメージサイズを最適化
  • マルチステージビルド
  • ネットワークと永続化を設定
  • デプロイメント戦略

Dockerfile ベストプラクティス

1. イメージサイズを最小化

FROM node:18-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm install

FROM node:18-alpine
WORKDIR /app
COPY --from=build /app/node_modules ./node_modules
COPY . .
CMD ["node", "server.js"]

2. レイヤー最適化

# キャッシュを活用するため、変更がない部分を上に
FROM node:18-alpine
WORKDIR /app

# 依存関係(変更が少ない)
COPY package*.json ./
RUN npm install

# アプリケーション(頻繁に変更)
COPY . .

CMD ["node", "server.js"]

3. セキュリティ

  • root ユーザーで実行しない
  • シークレットを避ける
  • ヘルスチェック追加
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
  CMD node healthcheck.js

docker-compose

version: '3.8'
services:
  app:
    build: .
    ports:
      - "3000:3000"
    environment:
      - NODE_ENV=production
    volumes:
      - ./data:/app/data
    depends_on:
      - db
  db:
    image: postgres:15
    environment:
      - POSTGRES_PASSWORD=secret

チェックリスト

  • イメージサイズ最適化
  • セキュリティスキャン
  • ヘルスチェック
  • ログ管理
  • ネットワーク構成

詳細については、ドキュメントを参照してください。

Source repo
affaan-m/ECC
Skill path
docs/ja-JP/skills/docker-patterns/SKILL.md
Commit SHA
4e973d3eaf92
Repository license
MIT
Data collected