hyperf / hyperf/hyperf-docker

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

Abierto
#51 1 comentario 2 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Dockerfile
Estrellas
348
Forks
201
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

# 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"
```

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
docker, php
Área
build-system
Tipo de issue
Error
Dificultad
2/5
Tiempo estimado
1-3 horas
Estado de actividad
Estancado
Claridad
Bien especificado
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.