Back to skills
SKILL.md
Dockerfile Generator
ASecurity根据应用类型自动生成优化的 Dockerfile。
- 16 stars
- 0 votes
- 0 copies
- 1 view
- Added June 7, 2026
Security analysis
96/100- Installs packages at runtime which could introduce malicious dependencies
Pro scans all 2 files and shows the line behind each finding
npx -y skills add modbender/skill-library-mcp --skill dockerfile-generator --agent claude-codeAre you the author of Dockerfile Generator?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/modbender-dockerfile-generator)---
name: Dockerfile Generator
description: 根据应用类型自动生成优化的 Dockerfile。
---
# Dockerfile Generator
根据应用类型自动生成优化的 Dockerfile。
## 功能
- 多语言支持 (Node.js, Python, Go, Java等)
- 多阶段构建优化
- 最佳实践自动应用
- 性能优化
## 触发词
- "生成Dockerfile"
- "docker配置"
- "containerize"
## 支持模板
```dockerfile
# 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"]
```
Files in this skill
- SKILL.md
- skill.yaml
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.