Merge pull request #1401 from bestlong/php-fpm-install-imap

Update php-fpm/Dockerfile-72 add IMAP support
This commit is contained in:
Yu-Lung Shao (Allen) 2018-02-26 21:32:54 +08:00 committed by GitHub
commit dc5474d31b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -363,6 +363,19 @@ RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
docker-php-ext-enable imagick \ docker-php-ext-enable imagick \
;fi ;fi
#####################################
# IMAP:
#####################################
ARG INSTALL_IMAP=false
ENV INSTALL_IMAP ${INSTALL_IMAP}
RUN if [ ${INSTALL_IMAP} = true ]; then \
apt-get update && \
apt-get install -y libc-client-dev libkrb5-dev && \
rm -r /var/lib/apt/lists/* && \
docker-php-ext-configure imap --with-kerberos --with-imap-ssl && \
docker-php-ext-install imap \
;fi
##################################### #####################################
# Check PHP version: # Check PHP version:
##################################### #####################################