Merge pull request #2813 from J-T-McC/master
Added PHP 8 to libzip exclusion conditions
This commit is contained in:
commit
e41be7eaf2
|
@ -106,7 +106,7 @@ ARG INSTALL_ZIP_ARCHIVE=false
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
|
if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
|
||||||
apk --update add libzip-dev && \
|
apk --update add libzip-dev && \
|
||||||
if [ ${LARADOCK_PHP_VERSION} = "7.3" ] || [ ${LARADOCK_PHP_VERSION} = "7.4" ]; then \
|
if [ ${LARADOCK_PHP_VERSION} = "7.3" ] || [ ${LARADOCK_PHP_VERSION} = "7.4" ] || [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then \
|
||||||
docker-php-ext-configure zip; \
|
docker-php-ext-configure zip; \
|
||||||
else \
|
else \
|
||||||
docker-php-ext-configure zip --with-libzip; \
|
docker-php-ext-configure zip --with-libzip; \
|
||||||
|
|
|
@ -51,7 +51,7 @@ 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
|
# 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 && \
|
libzip-dev zip unzip && \
|
||||||
if [ ${LARADOCK_PHP_VERSION} = "7.3" ] || [ ${LARADOCK_PHP_VERSION} = "7.4" ]; then \
|
if [ ${LARADOCK_PHP_VERSION} = "7.3" ] || [ ${LARADOCK_PHP_VERSION} = "7.4" ] || [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then \
|
||||||
docker-php-ext-configure zip; \
|
docker-php-ext-configure zip; \
|
||||||
else \
|
else \
|
||||||
docker-php-ext-configure zip --with-libzip; \
|
docker-php-ext-configure zip --with-libzip; \
|
||||||
|
|
|
@ -147,7 +147,7 @@ ARG INSTALL_ZIP_ARCHIVE=false
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
|
if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
|
||||||
apk --update add libzip-dev && \
|
apk --update add libzip-dev && \
|
||||||
if [ ${LARADOCK_PHP_VERSION} = "7.3" ] || [ ${LARADOCK_PHP_VERSION} = "7.4" ]; then \
|
if [ ${LARADOCK_PHP_VERSION} = "7.3" ] || [ ${LARADOCK_PHP_VERSION} = "7.4" ] || [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then \
|
||||||
docker-php-ext-configure zip; \
|
docker-php-ext-configure zip; \
|
||||||
else \
|
else \
|
||||||
docker-php-ext-configure zip --with-libzip; \
|
docker-php-ext-configure zip --with-libzip; \
|
||||||
|
|
Loading…
Reference in New Issue