add xlswriter extension

This commit is contained in:
Wuweiming 2021-12-16 11:49:55 +08:00
parent 17062bd9d8
commit 353ed5afb4
3 changed files with 3 additions and 3 deletions

View File

@ -497,7 +497,7 @@ RUN if [ ${INSTALL_GEARMAN} = true ]; then \
ARG INSTALL_XLSWRITER=false ARG INSTALL_XLSWRITER=false
RUN set -eux; \ RUN set -eux; \
if [ ${INSTALL_XLSWRITER} = true ]; then \ if [ ${INSTALL_XLSWRITER} = true ]; then \
# Install Php Swoole Extension \ # Install Php xlswriter Extension \
pecl install xlswriter; \ pecl install xlswriter; \
docker-php-ext-enable xlswriter; \ docker-php-ext-enable xlswriter; \
php -m | grep -q 'xlswriter'; \ php -m | grep -q 'xlswriter'; \

View File

@ -378,7 +378,7 @@ RUN set -eux; \
ARG INSTALL_XLSWRITER=false ARG INSTALL_XLSWRITER=false
RUN set -eux; \ RUN set -eux; \
if [ ${INSTALL_XLSWRITER} = true ]; then \ if [ ${INSTALL_XLSWRITER} = true ]; then \
# Install Php Swoole Extension \ # Install Php xlswriter Extension \
pecl install xlswriter; \ pecl install xlswriter; \
docker-php-ext-enable xlswriter; \ docker-php-ext-enable xlswriter; \
php -m | grep -q 'xlswriter'; \ php -m | grep -q 'xlswriter'; \

View File

@ -574,7 +574,7 @@ RUN set -eux; \
ARG INSTALL_XLSWRITER=false ARG INSTALL_XLSWRITER=false
RUN set -eux; \ RUN set -eux; \
if [ ${INSTALL_XLSWRITER} = true ]; then \ if [ ${INSTALL_XLSWRITER} = true ]; then \
# Install Php Swoole Extension # Install Php xlswriter Extension
echo '' | pecl -q install xlswriter; \ echo '' | pecl -q install xlswriter; \
echo "extension=xlswriter.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/xlswriter.ini; \ echo "extension=xlswriter.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/xlswriter.ini; \
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/xlswriter.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-xlswriter.ini; \ ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/xlswriter.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-xlswriter.ini; \