Added PHP Memcached extension installation for PHP 5.6

This commit is contained in:
Suteepat Damrongyingsupab 2016-08-16 16:31:52 +07:00
parent 28b4077a49
commit a6e04aa659
2 changed files with 14 additions and 0 deletions

View File

@ -27,6 +27,7 @@ services:
- INSTALL_MONGO=false
- INSTALL_XDEBUG=false
- INSTALL_ZIP_ARCHIVE=false
- INSTALL_MEMCACHED=false
dockerfile: Dockerfile-70
volumes_from:
- volumes_source

View File

@ -36,6 +36,7 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
# - INSTALL_XDEBUG= false
# - INSTALL_MONGO= false
# - INSTALL_ZIP_ARCHIVE= false
# - INSTALL_MEMCACHED= false
#
#####################################
@ -74,6 +75,18 @@ RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
docker-php-ext-enable zip \
;fi
#####################################
# PHP Memcached:
#####################################
ARG INSTALL_MEMCACHED=true
ENV INSTALL_MEMCACHED ${INSTALL_MEMCACHED}
RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
# Install the php memcached extension
pecl install memcached && \
docker-php-ext-enable memcached \
;fi
#
#--------------------------------------------------------------------------