Dockerfile generator

From hamzafarooq/multi-agent-course · View interactive version

Dockerfile generator is an AI agent skill from the GitHub repository hamzafarooq/multi-agent-course. 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.

How to use this skill

Skill file

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

# [explanation of each stage]

What this Dockerfile does:


Platform config (if applicable)

fly.toml (for Fly.io):

# minimal fly.toml

Commands to deploy:

# step-by-step deployment commands

.dockerignore

node_modules/
.env
.env.local
*.log
.git

Security checklist:


Flag any environment variable that looks like a secret — confirm it's being passed at runtime, not baked into the image.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.