Add PHP Decimal extension support

This commit is contained in:
Patrick Kivits
2021-01-27 08:24:44 +01:00
parent 29f3d6a671
commit ed649993ca
5 changed files with 51 additions and 0 deletions

View File

@ -977,6 +977,21 @@ RUN if [ ${INSTALL_XMLRPC} = true ]; then \
docker-php-ext-install xmlrpc \
;fi
###########################################################################
# PHP DECIMAL:
###########################################################################
USER root
ARG INSTALL_PHPDECIMAL=false
RUN if [ ${INSTALL_PHPDECIMAL} = true ]; then \
apt-get update -yqq \
&& apt-get install -y libmpdec-dev \
&& pecl install decimal \
&& docker-php-ext-enable decimal \
;fi
###########################################################################
# New Relic for PHP:
###########################################################################