-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
22 lines (20 loc) · 965 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM webdevops/php:8.0-alpine
RUN \
apk update && \
apk add --no-cache libstdc++ postgresql-dev libpq && \
apk add --no-cache --virtual .build-deps $PHPIZE_DEPS curl-dev openssl-dev pcre-dev pcre2-dev zlib-dev && \
docker-php-ext-install sockets && \
docker-php-source extract && \
mkdir /usr/src/php/ext/openswoole && \
curl -sfL https://github.com/openswoole/swoole-src/archive/v4.12.0.tar.gz -o swoole.tar.gz && \
tar xfz swoole.tar.gz --strip-components=1 -C /usr/src/php/ext/openswoole && \
docker-php-ext-configure openswoole \
--enable-http2 \
--enable-mysqlnd \
--enable-openssl \
--enable-sockets --enable-swoole-curl --enable-swoole-json --with-postgres && \
docker-php-ext-install -j$(nproc) --ini-name zzz-docker-php-ext-openswoole.ini openswoole && \
rm -f swoole.tar.gz $HOME/.composer/*-old.phar && \
docker-php-source delete && \
apk del .build-deps
WORKDIR "/"