How to get composer when using frankenphp:static-builder? #1354
-
Dockerfile
If I understand correctly you need to use /usr/bin/env: ‘php’: No such file or directory I don't think you should add another php install on top of your image, it should run in that static binary, right? I'm trying to use the static build on a dev image, it's not ready for production. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
It's actually documented: https://frankenphp.dev/docs/known-issues/#composer-scripts-referencing-php However this results in:
It seems it's not finding the artisan file? Edit: sorry, forgot doing the following before running export PHP_BINARY=/usr/local/bin/php
composer install |
Beta Was this translation helpful? Give feedback.
It's not possible to run artisan commands directly (I don't think, anyway. You'd need #945 probably) with a standalone binary.
Personally, standalone builds are designed for production, not development, so I am curious why you would be running artisan commands with a standalone build (especially
composer install
)?