A free, open-source online tool for generating production-ready Dockerfiles and Docker Compose files. Pick your stack, configure options, and get optimized Docker configurations in seconds.
Live Demo · Report Bug · Request Feature
- 23+ Framework Support — Node.js, Express, NestJS, Next.js, React, Vue, Python, Django, FastAPI, Flask, Java, Spring Boot, Quarkus, Go, Rust, Actix, PHP, Laravel, Ruby on Rails, .NET, Phoenix, Gin
- Multi-Stage Builds — Smaller final images with build dependencies isolated to a builder stage
- Best Practice Scanner — Built-in auditor that flags security and performance issues (running as root, missing health checks, oversized base images)
- Docker Compose Generator — Visual multi-service orchestration with PostgreSQL, MySQL, MongoDB, Redis, Nginx, and more
- Stack Builder — Full-stack configuration with databases, caches, and reverse proxies
- Framework-Specific Optimizations — Spring Boot layered JARs, Next.js standalone output, FastAPI uvicorn tuning
- Inline Explanations — Every instruction explained in plain English as you generate
- Export Options — Download Dockerfile, .dockerignore, .env.example, or full zip package
- Client-Side Generation — No data leaves your browser; complete privacy
- Free, No Signup — Open source with no authentication required
- Astro — Static site generator and web framework
- TypeScript — Type-safe JavaScript
- Tailwind CSS v4 — Utility-first CSS framework
- Cloudflare Pages — Deployment and hosting
- Node.js >= 22.12.0
- npm
git clone https://github.com/SuperSection/dockerfilegenerator.com.git
cd dockerfilegenerator.com
npm installnpm run devThe dev server starts at http://localhost:4321.
npm run build
npm run previewnpm run deployThis builds the site and deploys to Cloudflare Workers via Wrangler.
/
├── public/ # Static assets
├── src/
│ ├── components/ # Astro components (DockerfileGenerator, ComposeGenerator, StackBuilder, Nav, Footer, etc.)
│ ├── layouts/ # Page layouts
│ ├── lib/ # Utility functions and generators
│ ├── pages/ # Route pages (index, compose, stack-builder, about, contact, etc.)
│ ├── registry/ # Framework registry (provider configs, seeds, metadata)
│ ├── scripts/ # Build-time scripts
│ ├── styles/ # Global styles
│ └── types/ # TypeScript type definitions
├── scripts/ # CLI scripts (sync-registry)
├── astro.config.mjs # Astro configuration
├── wrangler.jsonc # Cloudflare Wrangler config
└── package.json
- Select a framework from the supported list
- Configure options — base image, port, package manager, multi-stage builds, security settings
- Generate — get a production-ready Dockerfile with best practices baked in
- Review — the scanner audits your Dockerfile and flags issues
- Export — copy, download, or export as a zip package
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Soumo Sarkar — GitHub · Website
This project is open source. See the repository for license details.
Built for developers who ship.