Skip to content

Commit 5a002c4

Browse files
committed
update
1 parent 72b2830 commit 5a002c4

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

8.4/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ LABEL maintainer="Shion <shion.chow@gmail.com>"
33

44
ENV PHP_VERSION 8.4.12
55
ENV PHP_REDIS_VERSION 6.2.0
6+
ENV PHP_SWOOLE_VERSION 5.1.8
67

78
ENV BUILD_TOOLS \
89
pkgconf \
@@ -113,6 +114,16 @@ RUN apk add --no-cache --virtual .build-tools $BUILD_TOOLS \
113114
&& make \
114115
&& make install \
115116
&& echo "extension=redis.so" >> $PHP_INI_DIR/conf.d/redis.ini \
117+
# swoole
118+
&& cd /usr/src \
119+
&& curl -o swoole.tar.gz -L https://pecl.php.net/get/swoole-${PHP_SWOOLE_VERSION}.tgz \
120+
&& tar -zxvf swoole.tar.gz \
121+
&& cd swoole-* \
122+
&& phpize \
123+
&& ./configure \
124+
&& make \
125+
&& make install \
126+
&& echo "extension=swoole.so" >> $PHP_INI_DIR/conf.d/swoole.ini \
116127
# clear
117128
&& cd ~ && rm -rf /usr/src && apk del .build-tools .build-deps
118129

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Build on Alpine.
1414

1515
### Include
1616
- Redis
17+
- Swoole (8.4)
1718

1819
### Tags
1920
- `8.4`, ` latest`

0 commit comments

Comments
 (0)