Fix PHP zip extension installation warnings (#1648)

This fixes the following warnings when installing "zip" php extension:
configure: WARNING: ========================================================
configure: WARNING: Use of bundled libzip is deprecated and will be removed.
configure: WARNING: Some features such as encryption and bzip2 are not available.
configure: WARNING: Use system library and --with-libzip is recommended.
configure: WARNING: ========================================================
This commit is contained in:
Abdelrahman Omran 2018-06-27 12:46:27 +02:00 committed by Shao Yu-Lung (Allen)
parent 0cbc51bf72
commit 06d0105514

View File

@ -188,6 +188,8 @@ RUN if [ ${INSTALL_AMQP} = true ]; then \
ARG INSTALL_ZIP_ARCHIVE=false ARG INSTALL_ZIP_ARCHIVE=false
RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \ RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
apt-get install libzip-dev -y && \
docker-php-ext-configure zip --with-libzip && \
# Install the zip extension # Install the zip extension
docker-php-ext-install zip \ docker-php-ext-install zip \
;fi ;fi