Getting Started
Dockerizer is a CLI tool that automatically generates production-ready Docker configurations for your projects. It analyzes your codebase, detects the framework and language, and creates optimized Dockerfiles.
Installation
Quick Install (Recommended)
Run the install script to download the latest version:
curl -fsSL https://dockerizer.dev/install.sh | sh
Using npm
Install globally via npm:
npm install -g @dublyo/dockerizer
Using Go
Install directly with Go:
go install github.com/dublyo/dockerizer@latest
Manual Download
Download pre-built binaries from the GitHub Releases page.
Quick Start
Step 1: Navigate to Your Project
cd /path/to/your/project
Step 2: Run Dockerizer
dockerizer
Dockerizer will analyze your project and generate:
Dockerfile- Multi-stage production builddocker-compose.yml- Container orchestration.dockerignore- Optimized ignore patterns
Step 3: Build and Run
# Build the image
docker build -t myapp .
# Or use docker-compose
docker-compose up --build
How It Works
1. Scan
Dockerizer scans your project files including package.json, requirements.txt, go.mod, Cargo.toml, Gemfile, composer.json, pom.xml, *.csproj, mix.exs, and source files.
2. Detect
Using pattern matching, it identifies your language, framework, and version with confidence scoring.
3. Generate
Based on detection results, it generates optimized Docker configurations using battle-tested templates.
Detection Confidence
Dockerizer uses a confidence scoring system:
- 90-100% - High confidence, generates immediately
- 70-89% - Good confidence, may prompt for confirmation
- Below 70% - Low confidence, uses AI fallback if configured
Generated Dockerfile Features
All generated Dockerfiles include production best practices:
- Multi-stage builds - Smaller final images
- Non-root user - Enhanced security
- Health checks - Container monitoring
- Optimized layers - Better caching
- Minimal base images - Alpine or slim variants
Next Steps
- Supported Frameworks - See all supported languages and frameworks
- CLI Reference - Learn all available commands and flags
- Examples - Real-world usage examples
- AI Configuration - Set up AI fallback