Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build will be failed for PHP 8.1 - alpine 3.16 - swoole 5.0.2 due to no php command. #51

Open
im-bravo opened this issue Mar 6, 2023 · 1 comment

Comments

@im-bravo
Copy link

im-bravo commented Mar 6, 2023

Build alpine-swoole will be failed for PHP 8.1 - alpine 3.16 - swoole 5.0.2 due to no php command.

Executed command:

docker compose build alpine-swool

.env

COMPOSER_VERSION=2.5.4

PHP_VERSION=8.1
PHP_BUILD_VERSION=8
ALPINE_VERSION=3.16
SW_VERSION=v5.0.2

Related source code

https://github.com/hyperf/hyperf-docker/blob/master/8.1/alpine/swoole/Dockerfile#L59-L62

Solution

If change php -> php81 , may it works.
May we can try to add execution file name as environment variable to build docker image.

RUN php81 -v & sleep 3 \
    && php81 -m & sleep 3 \
    && php81 --ri swoole & sleep 3 \
    && php81 --ri Zend\ OPcache & sleep 3 \
    && composer & sleep 3 \
    && echo -e "\033[42;37m Build Completed :).\033[0m\n"
@popdaul
Copy link

popdaul commented May 14, 2023

very useful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants