Stu Mason
Stu Mason

Activity

Issue Resolved

Issue #18 closed: 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

  1. Dockerfile only - Most flexible, works everywhere
  2. Docker Compose - If we need multiple services (app, queue worker, scheduler)
  3. Both options - Let user choose via flag (--dockerfile vs --nixpacks for legacy)

Tasks

  • Research Coolify's Dockerfile support and best practices
  • Design Dockerfile template for Laravel apps
  • Implement coolify:dockerfile command (or replace existing)
  • Update documentation
  • Migration guide for existing nixpacks users