← Back to Skills Marketplace
honestqiao

Dockerfile Generator

by HonestQiao · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
641
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install dockerfile-generator
Description
Automatically generate optimized Dockerfiles for various app types with multi-stage builds and best practice performance enhancements.
README (SKILL.md)

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"]
Usage Guidance
This skill appears coherent and low-risk: it only generates Dockerfile text. Before using results in production, manually review generated Dockerfiles for security best practices (avoid embedding secrets, pin exact base-image versions, add a non-root user, minimize exposed ports and installed packages, and validate multi-stage build outputs). Because it's instruction-only, it won't fetch code or credentials on its own, but never paste secrets into prompts or files you ask it to containerize.
Capability Analysis
Type: OpenClaw Skill Name: dockerfile-generator Version: 1.0.0 The skill is designed to generate Dockerfiles, but the `skill.yaml` implementation in JavaScript directly embeds user-provided `config.version` and `config.port` values into the Dockerfile string without sanitization. This creates a Dockerfile injection vulnerability, allowing an attacker to inject arbitrary commands into the generated Dockerfile if they can control these configuration parameters. While this is a critical vulnerability (potential RCE during Docker build), there is no clear evidence of intentional malicious behavior such as data exfiltration or self-exploitation within the provided code, classifying it as suspicious rather than malicious.
Capability Assessment
Purpose & Capability
Name and description (generate optimized Dockerfiles) match the provided SKILL.md templates and the generateDockerfile implementation in skill.yaml. No unrelated credentials, binaries, or configuration paths are requested.
Instruction Scope
SKILL.md and the included templates limit behavior to producing Dockerfile text for Node.js, Python, and Go. There are no instructions to read system files, access environment variables, call external endpoints, or transmit data.
Install Mechanism
No install spec and no code files to execute beyond the instruction text; the skill is instruction-only, which is the lowest-risk install model.
Credentials
The skill requests no environment variables, credentials, or config paths. The templates and implementation do not reference secrets or other external services.
Persistence & Privilege
always is false and the skill does not request persistent system presence or modify other skills. Autonomous invocation (model invocation enabled) is the platform default and is not by itself a concern here.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install dockerfile-generator
  3. After installation, invoke the skill by name or use /dockerfile-generator
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of Dockerfile Generator. - Supports automatic, optimized Dockerfile creation for Node.js, Python, Go, and Java applications. - Implements multi-stage build optimizations. - Applies best Docker container practices and performance improvements. - Triggered by phrases like "生成Dockerfile", "docker配置", and "containerize".
Metadata
Slug dockerfile-generator
Version 1.0.0
License
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Dockerfile Generator?

Automatically generate optimized Dockerfiles for various app types with multi-stage builds and best practice performance enhancements. It is an AI Agent Skill for Claude Code / OpenClaw, with 641 downloads so far.

How do I install Dockerfile Generator?

Run "/install dockerfile-generator" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Dockerfile Generator free?

Yes, Dockerfile Generator is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Dockerfile Generator support?

Dockerfile Generator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Dockerfile Generator?

It is built and maintained by HonestQiao (@honestqiao); the current version is v1.0.0.

💬 Comments