File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ services:
2727 - INSTALL_MONGO=false
2828 - INSTALL_XDEBUG=false
2929 - INSTALL_ZIP_ARCHIVE=false
30+ - INSTALL_MEMCACHED=false
3031 dockerfile : Dockerfile-70
3132 volumes_from :
3233 - volumes_source
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
3636# - INSTALL_XDEBUG= false
3737# - INSTALL_MONGO= false
3838# - INSTALL_ZIP_ARCHIVE= false
39+ # - INSTALL_MEMCACHED= false
3940#
4041
4142#####################################
@@ -74,6 +75,18 @@ RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
7475 docker-php-ext-enable zip \
7576;fi
7677
78+ #####################################
79+ # PHP Memcached:
80+ #####################################
81+
82+ ARG INSTALL_MEMCACHED=true
83+ ENV INSTALL_MEMCACHED ${INSTALL_MEMCACHED}
84+ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
85+ # Install the php memcached extension
86+ pecl install memcached && \
87+ docker-php-ext-enable memcached \
88+ ;fi
89+
7790
7891#
7992#--------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments