Allow for config of crush and opcache in the main docker file

This commit is contained in:
Tim Bracken
2016-08-16 17:51:41 -04:00
parent 928451ae88
commit cfc81fca64
4 changed files with 25 additions and 11 deletions

View File

@ -103,8 +103,13 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
#####################################
# Opcache:
#####################################
RUN docker-php-ext-install opcache
RUN docker-php-ext-enable opcache
ARG INSTALL_OPCACHE=true
ENV INSTALL_OPCACHE ${INSTALL_OPCACHE}
RUN if [ ${INSTALL_OPCACHE} = true ]; then \
docker-php-ext-install opcache && \
docker-php-ext-enable opcache \
;fi
#