Build will be failed for PHP 8.1 - alpine 3.16 - swoole 5.0.2 due to no php command.
- Dominant language
- Dockerfile
- Stars
- 348
- Forks
- 201
- PR merge metrics
- No merged PRs in 30d
Description
# Build alpine-swoole will be failed for PHP 8.1 - alpine 3.16 - swoole 5.0.2 due to no php command.
## Executed command:
```shell
docker compose build alpine-swool
```
## .env
```env:.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"
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.