Back to list
xingxerx

docker-expert

by xingxerx

0🍴 0📅 Jan 21, 2026

SKILL.md


name: docker-expert description: Automates Dockerfile optimization, multi-stage build configurations, and container security hardening.

Docker Expert Skill

This skill optimizes Dockerfiles for size, speed, and security.

Best Practices

  1. Multi-Stage Builds: Separate build tools from runtime artifacts.
    FROM golang:1.21 as builder
    ...
    FROM alpine:latest
    COPY --from=builder /app/bin /bin
    
  2. Layer Caching: Order instructions from least changed to most changed. Copy go.mod/package.json before source code.
  3. Security:
    • Do not run as root (USER nonroot).
    • Use trusted base images (e.g., distroless).
    • Scan for vulnerabilities (if trivy is installed).
  4. Optimization:
    • Combine RUN commands to reduce layers: RUN apt-get update && apt-get install -y ... && rm -rf /var/lib/apt/lists/*

Usage

When asked to "fix Dockerfile" or "dockerize this":

  • Read existing Dockerfile.
  • Apply the above rules.
  • Check .dockerignore to ensure .git, node_modules, etc., are excluded.

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon