Skip to content

Commit bfd0897

Browse files
committed
Fixed php not found
1 parent 62c19fb commit bfd0897

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## How to build local
22

33
```shell
4-
export PHP_VERSION=8.1 && export ALPINE_VERSION=3.18 && export SW_VERSION=5.0.3 && export COMPOSER_VERSION=2.6.4 && export PHP_BUILD_VERSION=81 && docker-compose build alpine-swoole
4+
export PHP_VERSION=8.4 && export ALPINE_VERSION=edge && export SW_VERSION=v6.2.1 && export COMPOSER_VERSION=2.9.8 && export PHP_BUILD_VERSION=84 && docker-compose build alpine-swoole
5+
56
export PHP_VERSION=8.1 && export ALPINE_VERSION=3.18 && docker-compose build alpine-base
67
```

8.4/alpine/swoole/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ RUN set -ex \
5555
&& wget -nv -O /usr/local/bin/composer https://github.com/composer/composer/releases/download/${COMPOSER_VERSION}/composer.phar \
5656
&& chmod u+x /usr/local/bin/composer \
5757
# ---------- clear works ----------
58+
&& [ ! -f /usr/bin/php ] && cp /usr/bin/php${PHP_BUILD_VERSION} /usr/bin/php \
5859
&& apk del .build-deps \
5960
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man /usr/local/bin/php* \
6061
# php info

0 commit comments

Comments
 (0)