Build will be failed for PHP 8.1 - alpine 3.16 - swoole 5.0.2 due to no php command.
- 主要言語
- Dockerfile
- スター
- 348
- フォーク
- 201
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
# 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"
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Inspect 8.1/alpine/swoole/Dockerfile around lines 59-62, starting by reproducing the reported docker compose build alpine-swool command with the listed PHP, Alpine, and Swoole versions. Verify the PHP executable name used during the build and confirm that the alpine-swoole image builds successfully with its PHP and Swoole checks.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- docker, php
- 領域
- build-system
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 45/100