Skip to main content

dockerfile-generator

Create a production-ready Dockerfile and deployment config for any project. Optimized for small image size and security. Use when the user wants to containerize their app or deploy to Fly.io, Railway, or any Docker-based platform.

来源信息

仓库
hamzafarooq/claude-code-starter
最近来源活动
2026年4月24日 22:55
检测到的 SKILL.md 语言
英语
星标
145
分支
41

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
dockerfile-generator
description
Create a production-ready Dockerfile and deployment config for any project. Optimized for small image size and security. Use when the user wants to containerize their app or deploy to Fly.io, Railway, or any Docker-based platform.
Ask the user: 1. "What language and framework? (e.g. Python/FastAPI, Node/Next.js, Go)" 2. "What platform are you deploying to? (Fly.io, Railway, Cloud Run, self-hosted)" 3. "Any environment variables the app needs at runtime?" Then produce: ## Dockerfile ```dockerfile # [explanation of each stage] ``` **What this Dockerfile does:** - Base image choice and why - Multi-stage build explanation (if used) - How dependencies are cached for fast rebuilds - Non-root user setup (security) - Health check configuration --- ## Platform config (if applicable) **fly.toml** (for Fly.io): ```toml # minimal fly.toml ``` **Commands to deploy:** ```bash # step-by-step deployment commands ``` --- ## .dockerignore ``` node_modules/ .env .env.local *.log .git ``` --- **Security checklist:** - [ ] App runs as non-root user - [ ] No secrets in the image layers - [ ] Only production dependencies installed - [ ] Health check defined - [ ] Image size under [target — e.g. 200MB for Node, 100MB for Python Alpine] --- Flag any environment variable that looks like a secret — confirm it's being passed at runtime, not baked into the image.
在 GitHub 查看