Dockerizer CLI is a command-line tool that automatically containerizes software projects. It detects different programming languages and frameworks to generate optimized Dockerfile and docker-compose.yml files.
- 🔍 Automatic language and framework detection
- 📦 Optimized Dockerfile generation with multi-stage builds
- 🛠 Docker Compose support with database and cache services
- 🚀 Interactive setup process
- 💡 Smart defaults with customization options
All supported technologies are defined in supported/*.yaml
:
- Languages: Node.js, Python, Go, PHP, Ruby, Java
- Frameworks: Next.js, React, Angular, Express, NestJS, Django, Flask, FastAPI, Gin, Fiber, Echo, Laravel, Symfony, Rails, Spring Boot
- Databases: PostgreSQL, MySQL, MongoDB
- Cache: Redis
# Run in PowerShell as Administrator
irm https://raw.githubusercontent.com/ravanbabayev/dockerizer-cli/main/install.ps1 | iex
curl -fsSL https://raw.githubusercontent.com/ravanbabayev/dockerizer-cli/main/install.sh | bash
- Download the appropriate binary for your operating system from the Releases page
- Extract the archive
- Add the binary to your PATH
Simply navigate to your project directory and run:< 84CD /p>
dockerizer init
The tool will:
- Analyze your project structure
- Detect the programming language and framework
- Ask for confirmation or alternative selection
- Offer database integration options
- Generate optimized Docker files
$ cd my-project
$ dockerizer init
✔ Detected Node.js as the project language. Is this correct? [Y/n] y
✔ Detected React as the framework. Is this correct? [Y/n] y
✔ Default port for React is 3000. Would you like to use a different port? [y/N] n
✔ Does your project need a database? [Y/n] y
✔ Select database type: PostgreSQL
✔ Default port for PostgreSQL is 5432. Would you like to use a different port? [y/N] n
📦 Generating Docker files...
✅ Successfully generated Docker files!
Next steps:
1. Review the generated files
2. Build and run your container:
docker-compose up --build
- Docker
- Docker Compose
# Clone the repository
git clone https://github.com/ravanbabayev/dockerizer-cli.git
cd dockerizer-cli
# Build
make build
# Install
make install
make test
MIT License - See LICENSE file for details.