← スキル一覧に戻る

docker-expert
by xingxerx
⭐ 0🍴 0📅 2026年1月21日
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
- Multi-Stage Builds: Separate build tools from runtime artifacts.
FROM golang:1.21 as builder ... FROM alpine:latest COPY --from=builder /app/bin /bin - Layer Caching: Order instructions from least changed to most changed. Copy
go.mod/package.jsonbefore source code. - Security:
- Do not run as root (
USER nonroot). - Use trusted base images (e.g.,
distroless). - Scan for vulnerabilities (if
trivyis installed).
- Do not run as root (
- Optimization:
- Combine
RUNcommands to reduce layers:RUN apt-get update && apt-get install -y ... && rm -rf /var/lib/apt/lists/*
- Combine
Usage
When asked to "fix Dockerfile" or "dockerize this":
- Read existing Dockerfile.
- Apply the above rules.
- Check
.dockerignoreto ensure.git,node_modules, etc., are excluded.
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓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
レビュー
💬
レビュー機能は近日公開予定です