Add PHP Decimal extension support

This commit is contained in:
Patrick Kivits committed 2021-02-22 11:13:22 +01:00
1 parent 29f3d6a671
commit ed649993ca
5 files changed
+51

No files matched your search

+15
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:
###########################################################################