Deploy fails on composer install
igorgrazianoTRIAL
a year ago
I am trying to deploy a Laravel 8.4 app from a GitHub repo, but I get the error below during deploy, which I cannot find a lot of resources about. This is my first time using Railway and I'm bit lost, would appreciate if someone could give me a hand with this. Thank you!
9.158 Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255
-----
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 i
22 |
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c composer install --ignore-platform-reqs" did not complete successfully: exit code: 255
1 Replies