Repository navigation
How to get composer when using frankenphp:static-builder? #1354
Answered
by
withinboredom
francoism90
asked this question in
Q&A
|
Dockerfile If I understand correctly you need to use /usr/bin/env: ‘php’: No such file or directoryI 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 |
Answered by
withinboredom
Jan 31, 2025
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 |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)?