Added support for the mailparse php pecl extension

This commit is contained in:
skipworkgh
2019-07-02 16:11:58 +02:00
parent a2c7b46766
commit e9eacfafa7
4 changed files with 27 additions and 0 deletions

View File

@ -725,6 +725,19 @@ RUN if [ ${INSTALL_FFMPEG} = true ]; then \
apt-get -y install ffmpeg \
;fi
###########################################################################
# Mailparse extension:
###########################################################################
ARG INSTALL_MAILPARSE=false
RUN if [ ${INSTALL_MAILPARSE} = true ]; then \
# Install mailparse extension
printf "\n" | pecl install -o -f mailparse \
&& rm -rf /tmp/pear \
&& docker-php-ext-enable mailparse \
;fi
###########################################################################
# Check PHP version:
###########################################################################