Browse Source

PHP 7.4 zip option removed

Shao Yu Lung 5 năm trước cách đây
mục cha
commit
ef267a64e6
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      php-fpm/Dockerfile

+ 5 - 1
php-fpm/Dockerfile

@@ -51,7 +51,11 @@ RUN set -xe; \
       #
       # next lines are here becase there is no auto build on dockerhub see https://github.com/laradock/laradock/pull/1903#issuecomment-463142846
       libzip-dev zip unzip && \
-      docker-php-ext-configure zip --with-libzip && \
+      if [ ${LARADOCK_PHP_VERSION} = "7.3" ] || [ ${LARADOCK_PHP_VERSION} = "7.4" ]; then \
+        docker-php-ext-configure zip; \
+      else \
+        docker-php-ext-configure zip --with-libzip; \
+      fi && \
       # Install the zip extension
       docker-php-ext-install zip && \
       php -m | grep -q 'zip'