ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

Dockerfile Generator

Skill by honestqiao

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/honestqiao/dockerfile-generator
Or

Dockerfile Generator

根据应用类型自动生成优化的 Dockerfile。

功能

  • 多语言支持 (Node.js, Python, Go, Java等)
  • 多阶段构建优化
  • 最佳实践自动应用
  • 性能优化

触发词

  • "生成Dockerfile"
  • "docker配置"
  • "containerize"

支持模板

# Node.js
FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
COPY . .
EXPOSE 3000
CMD ["node", "server.js"]

# Python
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
EXPOSE 8000
CMD ["python", "main.py"]

# Go (多阶段构建)
FROM golang:1.21-alpine AS builder
WORKDIR /app
COPY . .
RUN go build -o main .
FROM alpine
COPY --from=builder /app/main .
EXPOSE 8080
CMD ["./main"]

Metadata

Stars2387
Views2
Updated2026-03-09
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-honestqiao-dockerfile-generator": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.