Merge pull request #2608 from tancou/add-imap-worker-support

Adding support for IMAP on php-worker
This commit is contained in:
Shao Yu-Lung (Allen) 2020-05-30 14:28:41 +08:00 committed by GitHub
commit ae58620386
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 0 deletions

View File

@ -289,6 +289,7 @@ services:
- INSTALL_TAINT=${PHP_WORKER_INSTALL_TAINT}
- INSTALL_FFMPEG=${PHP_WORKER_INSTALL_FFMPEG}
- INSTALL_REDIS=${PHP_WORKER_INSTALL_REDIS}
- INSTALL_IMAP=${PHP_WORKER_INSTALL_IMAP}
- PUID=${PHP_WORKER_PUID}
- PGID=${PHP_WORKER_PGID}
volumes:

View File

@ -255,6 +255,7 @@ PHP_WORKER_INSTALL_FFMPEG=false
PHP_WORKER_INSTALL_CASSANDRA=false
PHP_WORKER_INSTALL_GEARMAN=false
PHP_WORKER_INSTALL_REDIS=false
PHP_WORKER_INSTALL_IMAP=false
PHP_WORKER_PUID=1000
PHP_WORKER_PGID=1000

View File

@ -217,6 +217,18 @@ RUN if [ ${INSTALL_TAINT} = true ]; then \
docker-php-ext-enable taint \
;fi
###########################################################################
# Imap EXTENSION
###########################################################################
ARG INSTALL_IMAP=false
RUN if [ ${INSTALL_IMAP} = true ]; then \
apk add --update imap-dev openssl-dev && \
docker-php-ext-configure imap --with-imap --with-imap-ssl && \
docker-php-ext-install imap \
;fi
#
#--------------------------------------------------------------------------
# Optional Supervisord Configuration