Laravel Build Error
I am trying to deploy my laravel 11 app and i am running into this build error
#12 5.646 1 [internal]:0
#12 5.646 Illuminate\Foundation\Application::Illuminate\Foundation{closure}(Object(Illuminate\Foundation\Support\Providers\RouteServiceProvider), "Illuminate\Foundation\Support\Providers\RouteServiceProvider")
#12 5.646
#12 5.646 2 [internal]:0
#12 5.646 Illuminate\Foundation\Application::Illuminate\Foundation{closure}(Object(Illuminate\Foundation\Support\Providers\RouteServiceProvider), "Illuminate\Foundation\Support\Providers\RouteServiceProvider")
#12 5.655 Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
#12 ERROR: process "/bin/bash -ol pipefail -c composer install --ignore-platform-reqs" did not complete successfully: exit code: 1
-----
[ 8/16] RUN composer install --ignore-platform-reqs:5.646 816▕ } 5.646 817▕ } 5.646 1 [internal]:0 Illuminate\Foundation\Application::Illuminate\Foundation{closure}(Object(Illuminate\Foundation\Support\Providers\RouteServiceProvider), "Illuminate\Foundation\Support\Providers\RouteServiceProvider") 5.646 5.646 2 [internal]:0 5.646 Illuminate\Foundation\Application::Illuminate\Foundation{closure}(Object(Illuminate\Foundation\Support\Providers\RouteServiceProvider), "Illuminate\Foundation\Support\Providers\RouteServiceProvider") 5.655 Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1 ----- Dockerfile:20 ------------------- 18 | COPY . /app/. 19 | RUN mkdir -p /var/log/nginx && mkdir -p /var/cache/nginx 20 | >>> RUN composer install --ignore-platform-reqs 21 | RUN npm ci 22 | ------------------- ERROR: failed to solve: process "/bin/bash -ol pipefail -c composer install --ignore-platform-reqs" did not complete successfully: exit code: 1 Error: Docker build failed Project ID: 68fa9062-dcb8-4738-96a5-7a2e116847e7
1 Reply
Project ID:
68fa9062-dcb8-4738-96a5-7a2e116847e7