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>"
33
44ENV PHP_VERSION 8.4.12
55ENV PHP_REDIS_VERSION 6.2.0
6+ ENV PHP_SWOOLE_VERSION 5.1.8
67
78ENV 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
Original file line number Diff line number Diff 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 `
You can’t perform that action at this time.
0 commit comments