Laravel 11 Build Commands Error

Hey, i have my nixpacks.toml file setup to run the following commands: [phases.build] cmds = ['npm run build','php artisan optimize:clear','php artisan migrate','php artisan db:seed','php artisan storage:link'] i am running into an error when building Dockerfile:26 ------------------- 24 | COPY . /app/. 25 | RUN npm run build 26 | >>> RUN php artisan optimize:clear 27 | RUN php artisan migrate 28 | RUN php artisan db:seed ------------------- ERROR: failed to solve: process "/bin/bash -ol pipefail -c php artisan optimize:clear" did not complete successfully: exit code: 1 Error: Docker build failed Project ID: 68fa9062-dcb8-4738-96a5-7a2e116847e7
2 Replies
Percy
Percy4mo ago
Project ID: 68fa9062-dcb8-4738-96a5-7a2e116847e7
Faith
Faith4w ago
Did you end up fixing this?
Want results from more Discord servers?
Add your server