File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ ARG INSTALL_ZIP_ARCHIVE=false
106106RUN set -eux; \
107107 if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
108108 apk --update add libzip-dev && \
109- if [ ${LARADOCK_PHP_VERSION} = "7.3" ] || [ ${LARADOCK_PHP_VERSION} = "7.4" ]; then \
109+ if [ ${LARADOCK_PHP_VERSION} = "7.3" ] || [ ${LARADOCK_PHP_VERSION} = "7.4" ] || [ $(php -r "echo PHP_MAJOR_VERSION;" ) = "8" ] ; then \
110110 docker-php-ext-configure zip; \
111111 else \
112112 docker-php-ext-configure zip --with-libzip; \
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ RUN set -xe; \
5151 #
5252 # next lines are here becase there is no auto build on dockerhub see https://github.com/laradock/laradock/pull/1903#issuecomment-463142846
5353 libzip-dev zip unzip && \
54- if [ ${LARADOCK_PHP_VERSION} = "7.3" ] || [ ${LARADOCK_PHP_VERSION} = "7.4" ]; then \
54+ if [ ${LARADOCK_PHP_VERSION} = "7.3" ] || [ ${LARADOCK_PHP_VERSION} = "7.4" ] || [ $(php -r "echo PHP_MAJOR_VERSION;" ) = "8" ] ; then \
5555 docker-php-ext-configure zip; \
5656 else \
5757 docker-php-ext-configure zip --with-libzip; \
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ ARG INSTALL_ZIP_ARCHIVE=false
147147RUN set -eux; \
148148 if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
149149 apk --update add libzip-dev && \
150- if [ ${LARADOCK_PHP_VERSION} = "7.3" ] || [ ${LARADOCK_PHP_VERSION} = "7.4" ]; then \
150+ if [ ${LARADOCK_PHP_VERSION} = "7.3" ] || [ ${LARADOCK_PHP_VERSION} = "7.4" ] || [ $(php -r "echo PHP_MAJOR_VERSION;" ) = "8" ] ; then \
151151 docker-php-ext-configure zip; \
152152 else \
153153 docker-php-ext-configure zip --with-libzip; \
You can’t perform that action at this time.
0 commit comments