Source profileQuality 56/100

affaan-m/ECC/docs/ja-JP/skills/docker-patterns/SKILL.md

docker-patterns

Review docker-patterns's use cases, installation, workflow, and original source instructions.

Source repository stars
234,327
Declared platforms
0
Static risk flags
0
Last source update
2026-07-27
Source checked
2026-07-28

Decision brief

What it does—and where it fits

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

Best for

    Not for

    • Tasks that require unconfirmed production actions or broad system permissions.
    • Environments where the pinned source and install steps cannot be inspected.

    Compatibility matrix

    Platform support, with evidence labels

    PlatformStatusEvidenceWhat to check
    CodexNot declaredNo explicit evidencePortability before use
    Claude CodeNot declaredNo explicit evidencePortability before use
    CursorNot declaredNo explicit evidencePortability before use
    Gemini CLINot declaredNo explicit evidencePortability before use
    Open the compatibility checker

    Installation

    Inspect first. Install second.

    The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

    Source-detected install commandSource
    npx skills add https://github.com/affaan-m/ECC --skill "docs/ja-JP/skills/docker-patterns"
    Safe inspection promptEditorial

    Inspect the Agent Skill "docker-patterns" from https://github.com/affaan-m/ECC/blob/4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38/docs/ja-JP/skills/docker-patterns/SKILL.md at commit 4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

    Workflow

    What the source asks the agent to do

    1. 01

      使用時期

      Dockerfile を書く

      Dockerfile を書くイメージサイズを最適化マルチステージビルド
    2. 02

      Dockerfile ベストプラクティス

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

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

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

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

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

    Permission review

    Static risk signals and limitations

    No configured static risk pattern was detected

    This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.

    Evidence record

    Why each signal appears

    EvidenceSourceComputedTestedEditorial
    SignalValueEvidence typeMeaning
    Quality score56/100ComputedDocumentation, specificity, maintenance, and trust rules
    Repository stars234,327SourceRepository attention, not individual Skill quality
    Compatibility0 platformsSourceDeclared in the catalog source record
    Usage guidecatalog recordEditorialGenerated or reviewed according to the visible evidence level

    Pinned source

    Provenance and original SKILL.md

    Repository
    affaan-m/ECC
    Skill path
    docs/ja-JP/skills/docker-patterns/SKILL.md
    Commit
    4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38
    License
    MIT
    Collected
    2026-07-28
    Default branch
    main
    View the original SKILL.md

    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
    

    チェックリスト

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

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

    Alternatives

    Compare before choosing