File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ LABEL maintainer="Shion <shion.chow@gmail.com>"
3
3
4
4
ENV PHP_VERSION 8.4.12
5
5
ENV PHP_REDIS_VERSION 6.2.0
6
+ ENV PHP_SWOOLE_VERSION 5.1.8
6
7
7
8
ENV BUILD_TOOLS \
8
9
pkgconf \
@@ -113,6 +114,16 @@ RUN apk add --no-cache --virtual .build-tools $BUILD_TOOLS \
113
114
&& make \
114
115
&& make install \
115
116
&& 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 \
116
127
# clear
117
128
&& cd ~ && rm -rf /usr/src && apk del .build-tools .build-deps
118
129
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ Build on Alpine.
14
14
15
15
### Include
16
16
- Redis
17
+ - Swoole (8.4)
17
18
18
19
### Tags
19
20
- ` 8.4 ` , ` latest `
You can’t perform that action at this time.
0 commit comments