Stu Mason
Stu Mason

Activity

Pull Request Opened

PR #39 opened: fix: add composer to frontend-build stage

Summary

  • Frontend builds were failing with composer: not found error
  • The laravel-coolify-base image has PHP+Node but not Composer
  • Added COPY --from=composer:2 to copy Composer binary before running composer install

Problem

When a project has package.json, the Dockerfile generator creates a frontend-build stage that runs composer install (needed for Laravel Vite plugins like Wayfinder that run artisan commands during build). However, the base image didn't have Composer installed.

Test plan

  • All 231 existing tests pass
  • Deploy a project with package.json to verify the build succeeds

Stu Mason + AI [email protected]

+5
additions
-0
deletions
2
files changed