Skip to content

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

@im-bravo

Description

@im-bravo

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions