Skip to content
Skills Library
DevOps & cloud · Building & coding

dockerfile-generator

/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.

Licence
MIT
Last repository change
11.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 11.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

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.

Original author 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.

How it works

  1. Dockerfile
  2. Platform config (if applicable)
  3. .dockerignore
Original SKILL.md headings · 59 lines, 181 words
SKILL.md preview
---
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.

Versions

RepositoryScoreLicence
This page · hamzafarooq/claude-code-starter100MIT
jeremylongshore/tons-of-skills-marketplace100MIT
stefanthecode/dotnet-ai-toolkit100MIT
pantheon-org/tekhne90MIT

Database snapshot: 13.11.2026 · package version fdca7c1f7bad (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100docker-compose-generator
    Generates multi-stage Dockerfiles and docker-compose configurations optimized for size, security, and development workflow. Covers common stacks including Node.js, Python, Java, and Go. Triggers on: "create Dockerfile", "docker-compose", "containerize", "docker setup".
  • 100dockerize
    Generate an optimized, production-ready Dockerfile for any project. Detects language and framework, uses multi-stage builds, optimizes layer caching, handles monorepo structures, and follows security best practices. Use when the user says "dockerize", "add docker", "create…
  • 100deploy
    Elixir/Phoenix deployment patterns — Dockerfile, fly.toml; Use when configuring Fly.io, Docker, CI/CD, health checks…
  • 100railway-deploy
    Deploy projects to Railway — Dockerfile creation, railway.toml config, environment variables, multi-service setups (web + worker), and deployment via CLI or GraphQL API. Trigger on "deploy to Railway", "ship it on Railway", or "set up Railway hosting", and on questions about…
  • 100docker-image-create
    Generate production-ready Dockerfiles from project source code. Detects language/framework automatically and produces multi-stage builds with minimal, distroless, or slim base images. Use this skill whenever the user wants to containerize an application, create a Dockerfile,…
  • 100windsurf-dockerfile-generation
    Create optimized Dockerfiles with AI-driven best practices. Activate when users mention "create dockerfile", "container image", "docker optimization", "containerize application", or "docker best practices". Handles Docker configuration generation. Use when working with windsurf…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.