Issue Opened
Issue #18 opened: Replace Nixpacks with Dockerfile generation
Background
Nixpacks is being deprecated. We need to evaluate alternatives for deployment configuration generation.
Current Behaviour
The package currently generates a nixpacks.toml file for Coolify deployments.
Proposed Solution
Replace nixpacks.toml generation with Dockerfile generation:
- Generate an optimized Dockerfile for Laravel applications
- Support multi-stage builds for smaller images
- Include common Laravel requirements (PHP extensions, Node for assets, etc.)
- Maintain the same DX - simple command to generate deployment config
Alternatives Considered
- Dockerfile only - Most flexible, works everywhere
- Docker Compose - If we need multiple services (app, queue worker, scheduler)
- Both options - Let user choose via flag (
--dockerfilevs--nixpacksfor legacy)
Tasks
- Research Coolify's Dockerfile support and best practices
- Design Dockerfile template for Laravel apps
- Implement
coolify:dockerfilecommand (or replace existing) - Update documentation
- Migration guide for existing nixpacks users