Skip to content
Back to skills

Dockerfile Generator

ASecurity

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

  • 16 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 7, 2026
devopspythongojavanodedocker

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 2 files and shows the line behind each finding

Scanned June 7, 2026

npx -y skills add modbender/skill-library-mcp --skill dockerfile-generator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dockerfile Generator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dockerfile Generator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-dockerfile-generator/badge)](https://www.skillsdirectory.com/skills/modbender-dockerfile-generator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.md930 B
  • skill.yaml1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.