add zip extension support for PHP in php-worker (#1894)

This commit is contained in:
Lan Phan authored and Shao Yu-Lung (Allen) committed 2018-11-27 17:00:03 +08:00
1 parent 2689638d7d
commit d8c36ab860
3 files changed
+11

No files matched your search

+9
View File
@@ -44,6 +44,15 @@ RUN if [ ${INSTALL_PGSQL} = true ]; then \
&& docker-php-ext-install pdo_pgsql \
;fi
# Install ZipArchive:
ARG INSTALL_ZIP_ARCHIVE=false
RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
apk --update add libzip-dev && \
docker-php-ext-configure zip --with-libzip && \
# Install the zip extension
docker-php-ext-install zip \
;fi
RUN rm /var/cache/apk/* \
&& mkdir -p /var/www