🎨 新增php7.4

This commit is contained in:
zyimm 2024-03-13 11:43:14 +08:00
parent 57ac8914fa
commit 86e288dcc8
85 changed files with 4405 additions and 1 deletions

397
docker-compose.yml Normal file
View File

@ -0,0 +1,397 @@
version: "3"
services:
nginx:
build:
context: ./services/nginx
args:
NGINX_VERSION: nginx:${NGINX_VERSION}
CONTAINER_PACKAGE_URL: ${CONTAINER_PACKAGE_URL}
NGINX_INSTALL_APPS: ${NGINX_INSTALL_APPS}
container_name: nginx
ports:
- "${NGINX_HTTP_HOST_PORT}:80"
- "${NGINX_HTTPS_HOST_PORT}:443"
volumes:
- ${SOURCE_DIR}:/www/:rw
- ${NGINX_SSL_CERTIFICATE_DIR}:/ssl:rw
- ${NGINX_CONFD_DIR}:/etc/nginx/conf.d/:rw
- ${NGINX_CONF_FILE}:/etc/nginx/nginx.conf:ro
- ${NGINX_FASTCGI_PHP_CONF}:/etc/nginx/fastcgi-php.conf:ro
- ${NGINX_FASTCGI_PARAMS}:/etc/nginx/fastcgi_params:ro
- ${NGINX_LOG_DIR}:/var/log/nginx/:rw
environment:
TZ: "$TZ"
restart: always
networks:
default:
ipv4_address: 10.0.0.101
php74_swoole:
image: platform_php74_swoole
container_name: php74_swoole
expose:
- 9501
volumes:
- ${SOURCE_DIR}:/www/:rw
- ${PHP74_SWOOLE_PHP_CONF_FILE}:/usr/local/etc/php/php.ini:ro
- ${PHP74_SWOOLE_FPM_CONF_FILE}:/usr/local/etc/php-fpm.d/www.conf:rw
- ${PHP74_SWOOLE_LOG_DIR}:/var/log/php
- ${DATA_DIR}/composer:/tmp/composer
restart: always
cap_add:
- SYS_PTRACE
networks:
- default
php74:
image: platform_php74
container_name: php74
expose:
- 9501
volumes:
- ${SOURCE_DIR}:/www/:rw
- ${PHP74_PHP_CONF_FILE}:/usr/local/etc/php/php.ini:ro
- ${PHP74_FPM_CONF_FILE}:/usr/local/etc/php-fpm.d/www.conf:rw
- ${PHP74_LOG_DIR}:/var/log/php
- ${DATA_DIR}/composer:/tmp/composer
restart: always
cap_add:
- SYS_PTRACE
networks:
- default
php72:
image: platform_php72
container_name: php72
expose:
- 9501
volumes:
- ${SOURCE_DIR}:/www/:rw
- ${PHP72_PHP_CONF_FILE}:/usr/local/etc/php/php.ini:ro
- ${PHP72_FPM_CONF_FILE}:/usr/local/etc/php-fpm.d/www.conf:rw
- ${PHP72_LOG_DIR}:/var/log/php
- ${DATA_DIR}/composer:/tmp/composer
restart: always
cap_add:
- SYS_PTRACE
networks:
- default
# php81_swoole:
# build:
# context: ./services/php81_swoole
# args:
# PHP_VERSION: php:${PHP81_SWOOLE_VERSION}-fpm-alpine3.15
# CONTAINER_PACKAGE_URL: ${CONTAINER_PACKAGE_URL}
# PHP_EXTENSIONS: ${PHP81_SWOOLE_EXTENSIONS}
# TZ: "$TZ"
# container_name: php81_swoole
# expose:
# - 9501
# volumes:
# - ${SOURCE_DIR}:/www/:rw
# - ${PHP81_SWOOLE_PHP_CONF_FILE}:/usr/local/etc/php/php.ini:ro
# - ${PHP81_SWOOLE_FPM_CONF_FILE}:/usr/local/etc/php-fpm.d/www.conf:rw
# - ${PHP81_SWOOLE_LOG_DIR}:/var/log/php
# - ${DATA_DIR}/composer:/tmp/composer
# restart: always
# cap_add:
# - SYS_PTRACE
# networks:
# - default
php80_swoole:
image: php82_swoole
container_name: php80_swoole
expose:
- 9501
volumes:
- ${SOURCE_DIR}:/www/:rw
- ${PHP80_SWOOLE_PHP_CONF_FILE}:/usr/local/etc/php/php.ini:ro
- ${PHP80_SWOOLE_FPM_CONF_FILE}:/usr/local/etc/php-fpm.d/www.conf:rw
- ${PHP80_SWOOLE_LOG_DIR}:/var/log/php
- ${DATA_DIR}/composer:/tmp/composer
restart: always
cap_add:
- SYS_PTRACE
networks:
- default
php56:
image: cs2ag/php5.6-devtest
container_name: php56
expose:
- 9501
volumes:
- ${SOURCE_DIR}:/www/:rw
- ${PHP56_PHP_CONF_FILE}:/usr/local/etc/php/php.ini:ro
- ${PHP56_LOG_DIR}:/var/log/php
- ${DATA_DIR}/composer:/tmp/composer
restart: always
cap_add:
- SYS_PTRACE
networks:
- default
mysql:
image: mysql/mysql-server:${MYSQL_VERSION}
container_name: mysql
ports:
- "${MYSQL_HOST_PORT}:3306"
volumes:
- ${MYSQL_CONF_FILE}:/etc/mysql/conf.d/mysql.cnf:ro
- ${DATA_DIR}/mysql:/var/lib/mysql/:rw
- ${MYSQL_LOG_DIR}:/var/log/mysql/:rw
restart: always
networks:
- default
environment:
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
MYSQL_ROOT_HOST: "${MYSQL_ROOT_HOST}"
TZ: "$TZ"
# mysql5:
# image: mysql/mysql-server:${MYSQL5_VERSION}
# container_name: mysql5
# ports:
# - "${MYSQL5_HOST_PORT}:3306"
# volumes:
# - ${MYSQL5_CONF_FILE}:/etc/mysql/conf.d/mysql.cnf:ro
# - ${DATA_DIR}/mysql5:/var/lib/mysql/:rw
# - ${MYSQL5_LOG_DIR}:/var/log/mysql/:rw
# restart: always
# networks:
# - default
# environment:
# MYSQL_ROOT_PASSWORD: "${MYSQL5_ROOT_PASSWORD}"
# MYSQL_ROOT_HOST: "${MYSQL5_ROOT_HOST}"
# TZ: "$TZ"
# openresty:
# image: openresty/openresty:${OPENRESTY_VERSION}
# container_name: openresty
# ports:
# - "${OPENRESTY_HTTP_HOST_PORT}:80"
# - "${OPENRESTY_HTTPS_HOST_PORT}:443"
# volumes:
# - ${SOURCE_DIR}:/www/:rw
# - ${OPENRESTY_CONFD_DIR}:/etc/nginx/conf.d/:ro
# - ${OPENRESTY_SSL_CERTIFICATE_DIR}:/ssl:rw
# - ${OPENRESTY_CONF_FILE}:/usr/local/openresty/nginx/conf/nginx.conf:ro
# - ${OPENRESTY_FASTCGI_PHP_CONF}:/usr/local/openresty/nginx/conf/fastcgi-php.conf:ro
# - ${OPENRESTY_CONF_FASTCGIPARAMS_FILE}:/usr/local/openresty/nginx/conf/fastcgi_params:ro
# - ${OPENRESTY_LOG_DIR}:/var/log/nginx/:rw
# environment:
# TZ: "$TZ"
# networks:
# - default
redis:
image: redis:${REDIS_VERSION}
container_name: redis
ports:
- "${REDIS_HOST_PORT}:6379"
volumes:
- ${REDIS_CONF_FILE}:/etc/redis.conf:ro
- ${DATA_DIR}/redis:/data/:rw
restart: always
entrypoint: ["redis-server", "/etc/redis.conf"]
environment:
TZ: "$TZ"
networks:
- default
# memcached:
# image: memcached:${MEMCACHED_VERSION}
# container_name: memcached
# ports:
# - "${MEMCACHED_HOST_PORT}:11211"
# environment:
# MEMCACHED_CACHE_SIZE: "${MEMCACHED_CACHE_SIZE}"
# networks:
# - default
# rabbitmq:
# build:
# context: ./services/rabbitmq
# args:
# RABBITMQ_VERSION: ${RABBITMQ_VERSION}
# RABBITMQ_PLUGINS: ${RABBITMQ_PLUGINS}
# container_name: rabbitmq
# restart: always
# ports:
# - "${RABBITMQ_HOST_PORT_C}:5672"
# - "${RABBITMQ_HOST_PORT_S}:15672"
# environment:
# TZ: "$TZ"
# RABBITMQ_DEFAULT_USER: "${RABBITMQ_DEFAULT_USER}"
# RABBITMQ_DEFAULT_PASS: "${RABBITMQ_DEFAULT_PASS}"
# networks:
# - default
# phpmyadmin:
# image: phpmyadmin/phpmyadmin:latest
# container_name: phpmyadmin
# ports:
# - "${PHPMYADMIN_HOST_PORT}:80"
# volumes:
# - ${PHPMYADMIN_USER_CONF_FILE}:/etc/phpmyadmin/config.user.inc.php:ro
# - ${PHPMYADMIN_PHP_CONF_FILE}:/usr/local/etc/php/conf.d/php-phpmyadmin.ini:ro
# networks:
# - default
# environment:
# - PMA_HOST=mysql
# - PMA_PORT=3306
# - TZ=$TZ
# phpredisadmin:
# image: erikdubbelboer/phpredisadmin:latest
# container_name: phpredisadmin
# ports:
# - "${REDISMYADMIN_HOST_PORT}:80"
# networks:
# - default
# environment:
# - REDIS_1_HOST=redis
# - REDIS_1_PORT=6379
# - TZ=$TZ
mongodb:
image: mongo:${MONGODB_VERSION}
container_name: mongodb
environment:
MONGO_INITDB_ROOT_USERNAME: "${MONGODB_INITDB_ROOT_USERNAME}"
MONGO_INITDB_ROOT_PASSWORD: "${MONGODB_INITDB_ROOT_PASSWORD}"
TZ: "$TZ"
volumes:
- ${DATA_DIR}/mongo:/data/db:rw
- ${DATA_DIR}/mongo_key:/mongo:rw
ports:
- "${MONGODB_HOST_PORT}:27017"
networks:
- default
command:
--auth
restart: always
# adminmongo:
# image: mrvautin/adminmongo
# container_name: adminmongo
# ports:
# - "${ADMINMONGO_HOST_PORT}:1234"
# environment:
# - HOST=0.0.0.0
# - DB_HOST=mongodb
# - DB_PORT=27017
# networks:
# - default
# elasticsearch:
# build:
# context: ./services/elasticsearch
# args:
# ELASTICSEARCH_VERSION: ${ELASTICSEARCH_VERSION}
# ELASTICSEARCH_PLUGINS: ${ELASTICSEARCH_PLUGINS}
# container_name: elasticsearch
# environment:
# - TZ=$TZ
# - discovery.type=single-node
# - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
# volumes:
# - ${DATA_DIR}/esdata:/usr/share/elasticsearch/data
# - ${ELASTICSEARCH_CONF_FILE}:/usr/share/elasticsearch/config/elasticsearch.yml
# hostname: elasticsearch
# restart: always
# ports:
# - "${ELASTICSEARCH_HOST_PORT_C}:9200"
# - "${ELASTICSEARCH_HOST_PORT_S}:9300"
# kibana:
# image: kibana:${KIBANA_VERSION}
# container_name: kibana
# environment:
# TZ: "$TZ"
# elasticsearch.hosts: http://elasticsearch:9200
# I18N_LOCALE: "${KIBANA_I18N_LOCALE}"
# hostname: kibana
# depends_on:
# - elasticsearch
# restart: always
# ports:
# - "${KIBANA_HOST}:5601"
# logstash:
# image: logstash:${LOGSTASH_VERSION}
# container_name: logstash
# hostname: logstash
# restart: always
# depends_on:
# - elasticsearch
# environment:
# TZ: "$TZ"
# ports:
# - "${LOGSTASH_HOST_PORT_C}:9600"
# - "${LOGSTASH_HOST_PORT_S}:5044"
# node:
# image: node:${NODE_VERSION}
# environment:
# - NODE_ENV=production
# volumes:
# - ${SOURCE_DIR}:/www/:rw
# expose:
# - "8081"
# networks:
# - default
# stdin_open: true
# tty: true
# supervisor:
# build:
# context: ./services/supervisor
# args:
# ALPINE_VERSION: alpine:${ALPINE_VERSION}
# TZ: "$TZ"
# CONTAINER_PACKAGE_URL: ${CONTAINER_PACKAGE_URL}
# container_name: supervisor
# ports:
# - "${SUPERVISOR_HOST_PORT_C}:9001"
# volumes:
# - ${SOURCE_DIR}:/www/:rw
# - ${SUPERVISOR_LOG}:/var/log/supervisor/:rw
# - ${SUPERVISOR_CONFIG}:/etc/supervisor/conf.d/:rw
# - ${SUPERVISOR_CONF_FILE}:/etc/supervisor/supervisord.conf:ro
# command:
# - /bin/sh
# - -c
# - |
# supervisord -n -c /etc/supervisor/supervisord.conf
# restart: always
# cap_add:
# - SYS_PTRACE
# networks:
# - default
# nacos:
# image: nacos/nacos-server:2.0.0
# container_name: nacos
# environment:
# - PREFER_HOST_MODE=hostname
# - MODE=standalone
# volumes:
# - ${DATA_DIR}/nacos/standalone-logs/:/home/nacos/logs
# ports:
# - "8848:8848"
# - "9848:9848"
# restart: always
networks:
default:
driver: bridge
ipam:
driver: default
# 解除下面的注释可以设置网段用于nginx等容器固定容器IP
config:
- subnet: 10.0.0.0/24

81
php7.2-alpine/Dockerfile Normal file
View File

@ -0,0 +1,81 @@
ARG ALPINE_VERSION=3.12
ARG PHP_VERSION=7.2.34
FROM php:${PHP_VERSION}-fpm-alpine${ALPINE_VERSION}
LABEL maintainer="zyimm@qq.com" version="1.0" license="MIT"
ENV PHPIZE_DEPS="autoconf dpkg-dev dpkg file g++ gcc make pkgconf re2c pcre-dev pcre2-dev automake"
# 中科大镜像
ARG CONTAINER_PACKAGE_URL=mirrors.ustc.edu.cn
RUN if [ $CONTAINER_PACKAGE_URL ] ; then sed -i "s/dl-cdn.alpinelinux.org/${CONTAINER_PACKAGE_URL}/g" /etc/apk/repositories ; fi
ARG TZ=Asia/Shanghai
RUN set -ex \
&& apk --no-cache add tzdata \
&& cp "/usr/share/zoneinfo/$TZ" /etc/localtime \
&& echo "$TZ" > /etc/timezone
# Install composer and change it's cache home
RUN curl -o /usr/bin/composer https://mirrors.tencent.com/composer/composer.phar \
&& chmod +x /usr/bin/composer \
&& composer config -g repo.packagist composer https://mirrors.tencent.com/composer/
ENV COMPOSER_HOME=/tmp/composer
COPY ./extensions /tmp/extensions
WORKDIR /tmp/extensions
RUN set -ex \
&& apk update \
&& apk add --no-cache libstdc++ openssl bash libgomp openssl-dev curl-dev zlib-dev libzip libevent-dev libsasl \
&& apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
&& mv *.so /usr/local/lib/php/extensions/no-debug-non-zts-20170718/ \
#Install redis
&& docker-php-ext-enable igbinary \
&& docker-php-ext-enable redis \
&& pecl install mongodb \
&& docker-php-ext-enable mongodb \
&& docker-php-ext-enable pdo_mysql \
&& docker-php-ext-enable bcmath \
&& docker-php-ext-enable exif \
&& docker-php-ext-enable calendar \
&& docker-php-ext-enable zip \
&& docker-php-ext-enable pcntl \
&& docker-php-ext-enable xdebug \
&& docker-php-ext-enable sockets \
#Install imagick
&& apk add --no-cache imagemagick-dev libtool \
&& pecl install imagick \
&& docker-php-ext-enable imagick \
#Install gd
&& apk add --no-cache \
freetype \
freetype-dev \
libpng \
libpng-dev \
libjpeg-turbo \
libjpeg-turbo-dev \
libwebp-dev \
&& apk del \
freetype-dev \
libpng-dev \
libjpeg-turbo-dev \
&& docker-php-ext-enable gd \
&& apk del .build-deps \
&& rm -rf /var/cache/apk/* /tmp/*
#RUN apk --no-cache add shadow && usermod -u 1000 www-data && groupmod -g 1000 www-data
COPY ./php.ini /usr/local/etc/php/php.ini
# ---------- clear ----------
RUN set -x \
&& rm -rf /var/cache/apk/* /tmp/*
WORKDIR /www

BIN
php7.2-alpine/extensions/amqp.so Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
php7.2-alpine/extensions/bz2.so Executable file

Binary file not shown.

Binary file not shown.

BIN
php7.2-alpine/extensions/exif.so Executable file

Binary file not shown.

BIN
php7.2-alpine/extensions/gd.so Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
php7.2-alpine/extensions/intl.so Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
php7.2-alpine/extensions/pcntl.so Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
php7.2-alpine/extensions/redis.so Executable file

Binary file not shown.

BIN
php7.2-alpine/extensions/shmop.so Executable file

Binary file not shown.

BIN
php7.2-alpine/extensions/snmp.so Executable file

Binary file not shown.

BIN
php7.2-alpine/extensions/soap.so Executable file

Binary file not shown.

Binary file not shown.

BIN
php7.2-alpine/extensions/sodium.a Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
php7.2-alpine/extensions/wddx.so Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
php7.2-alpine/extensions/xsl.so Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
php7.2-alpine/extensions/zip.so Executable file

Binary file not shown.

View File

@ -0,0 +1,7 @@
[xdebug]
zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20170718/xdebug.so
xdebug.remote_autostart=1
xdebug.remote_enable=1
xdebug.remote_host=host.docker.internal
xdebug.remote_port=9000
xdebug.idekey=PHPSTORM_PHP72

1919
php7.2-alpine/php.ini Executable file

File diff suppressed because it is too large Load Diff

81
php74-apline/Dockerfile Normal file
View File

@ -0,0 +1,81 @@
ARG ALPINE_VERSION=3.16
ARG PHP_VERSION=7.4.33
FROM php:${PHP_VERSION}-fpm-alpine${ALPINE_VERSION}
LABEL maintainer="zyimm@qq.com" version="1.0" license="MIT"
ENV PHPIZE_DEPS="autoconf dpkg-dev dpkg file g++ gcc make pkgconf re2c pcre-dev pcre2-dev automake"
# 中科大镜像
ARG CONTAINER_PACKAGE_URL=mirrors.ustc.edu.cn
RUN if [ $CONTAINER_PACKAGE_URL ] ; then sed -i "s/dl-cdn.alpinelinux.org/${CONTAINER_PACKAGE_URL}/g" /etc/apk/repositories ; fi
ARG TZ=Asia/Shanghai
RUN set -ex \
&& apk --no-cache add tzdata \
&& cp "/usr/share/zoneinfo/$TZ" /etc/localtime \
&& echo "$TZ" > /etc/timezone
# Install composer and change it's cache home
RUN curl -o /usr/bin/composer https://mirrors.tencent.com/composer/composer.phar \
&& chmod +x /usr/bin/composer \
&& composer config -g repo.packagist composer https://mirrors.tencent.com/composer/
ENV COMPOSER_HOME=/tmp/composer
COPY ./extensions /tmp/extensions
WORKDIR /tmp/extensions
RUN set -ex \
&& apk update \
&& apk add --no-cache libstdc++ openssl bash libgomp openssl-dev curl-dev zlib-dev libzip libevent-dev libsasl \
&& apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
&& mv *.so /usr/local/lib/php/extensions/no-debug-non-zts-20190902/ \
#Install redis
&& docker-php-ext-enable igbinary \
&& docker-php-ext-enable redis \
&& pecl install mongodb \
&& docker-php-ext-enable mongodb \
&& docker-php-ext-enable pdo_mysql \
&& docker-php-ext-enable bcmath \
&& docker-php-ext-enable exif \
&& docker-php-ext-enable calendar \
&& docker-php-ext-enable zip \
&& docker-php-ext-enable pcntl \
&& docker-php-ext-enable sockets \
&& docker-php-ext-enable xdebug \
#Install imagick
&& apk add --no-cache imagemagick-dev libtool \
&& pecl install imagick \
&& docker-php-ext-enable imagick \
#Install gd
&& apk add --no-cache \
freetype \
freetype-dev \
libpng \
libpng-dev \
libjpeg-turbo \
libjpeg-turbo-dev \
libwebp-dev \
&& apk del \
freetype-dev \
libpng-dev \
libjpeg-turbo-dev \
&& docker-php-ext-enable gd \
&& apk del .build-deps \
&& rm -rf /var/cache/apk/* /tmp/*
RUN apk --no-cache add shadow && usermod -u 1000 www-data && groupmod -g 1000 www-data
COPY ./php.ini /usr/local/etc/php/php.ini
# ---------- clear ----------
RUN set -x \
&& rm -rf /var/cache/apk/* /tmp/*
WORKDIR /www

BIN
php74-apline/extensions/amqp.so Executable file

Binary file not shown.

Binary file not shown.

BIN
php74-apline/extensions/bcmath.so Executable file

Binary file not shown.

BIN
php74-apline/extensions/bz2.so Executable file

Binary file not shown.

Binary file not shown.

BIN
php74-apline/extensions/event.so Executable file

Binary file not shown.

BIN
php74-apline/extensions/exif.so Executable file

Binary file not shown.

BIN
php74-apline/extensions/gd.so Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
php74-apline/extensions/intl.so Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
php74-apline/extensions/mysqli.so Executable file

Binary file not shown.

Binary file not shown.

BIN
php74-apline/extensions/pcntl.so Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
php74-apline/extensions/redis.so Executable file

Binary file not shown.

BIN
php74-apline/extensions/shmop.so Executable file

Binary file not shown.

BIN
php74-apline/extensions/snmp.so Executable file

Binary file not shown.

BIN
php74-apline/extensions/soap.so Executable file

Binary file not shown.

Binary file not shown.

BIN
php74-apline/extensions/sodium.so Executable file

Binary file not shown.

BIN
php74-apline/extensions/swoole.so Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
php74-apline/extensions/xdebug.so Executable file

Binary file not shown.

BIN
php74-apline/extensions/xmlrpc.so Executable file

Binary file not shown.

BIN
php74-apline/extensions/xsl.so Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
php74-apline/extensions/zip.so Executable file

Binary file not shown.

1919
php74-apline/php.ini Normal file

File diff suppressed because it is too large Load Diff

View File

@ -38,7 +38,6 @@ RUN set -ex \
#Install redis
&& docker-php-ext-enable igbinary \
&& docker-php-ext-enable redis \
&& docker-php-ext-enable redis \
&& docker-php-ext-enable mongodb \
&& docker-php-ext-enable pdo_mysql \
&& docker-php-ext-enable bcmath \

View File

@ -35,6 +35,7 @@ RUN set -ex \
&& apk add --no-cache libstdc++ openssl bash c-ares-dev libpq-dev libc-dev libaio-dev openssl-dev curl-dev zlib-dev \
&& apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
&& set -ex \
&& phpize \
&& unzip swoole-src-5.0.3.zip && cd swoole-src-5.0.3 \
&& phpize \
&& ./configure --enable-openssl --enable-swoole-curl --enable-cares --enable-swoole-pgsql \