php 7.4 php-worker zip ext.
This commit is contained in:
parent
fb57c52ca6
commit
b26bcdb42a
|
@ -248,7 +248,7 @@ services:
|
||||||
context: ./php-worker
|
context: ./php-worker
|
||||||
args:
|
args:
|
||||||
- CHANGE_SOURCE=${CHANGE_SOURCE}
|
- CHANGE_SOURCE=${CHANGE_SOURCE}
|
||||||
- PHP_VERSION=${PHP_VERSION}
|
- LARADOCK_PHP_VERSION=${PHP_VERSION}
|
||||||
- PHALCON_VERSION=${PHALCON_VERSION}
|
- PHALCON_VERSION=${PHALCON_VERSION}
|
||||||
- INSTALL_PGSQL=${PHP_WORKER_INSTALL_PGSQL}
|
- INSTALL_PGSQL=${PHP_WORKER_INSTALL_PGSQL}
|
||||||
- INSTALL_BCMATH=${PHP_WORKER_INSTALL_BCMATH}
|
- INSTALL_BCMATH=${PHP_WORKER_INSTALL_BCMATH}
|
||||||
|
|
|
@ -4,11 +4,13 @@
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
|
||||||
ARG PHP_VERSION=${PHP_VERSION}
|
ARG LARADOCK_PHP_VERSION
|
||||||
FROM php:${PHP_VERSION}-alpine
|
FROM php:${LARADOCK_PHP_VERSION}-alpine
|
||||||
|
|
||||||
LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
|
LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
|
||||||
|
|
||||||
|
ARG LARADOCK_PHP_VERSION
|
||||||
|
|
||||||
# If you're in China, or you need to change sources, will be set CHANGE_SOURCE to true in .env.
|
# If you're in China, or you need to change sources, will be set CHANGE_SOURCE to true in .env.
|
||||||
|
|
||||||
ARG CHANGE_SOURCE=false
|
ARG CHANGE_SOURCE=false
|
||||||
|
@ -65,9 +67,14 @@ RUN if [ ${INSTALL_PGSQL} = true ]; then \
|
||||||
|
|
||||||
# Install ZipArchive:
|
# Install ZipArchive:
|
||||||
ARG INSTALL_ZIP_ARCHIVE=false
|
ARG INSTALL_ZIP_ARCHIVE=false
|
||||||
RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
|
RUN set -eux; \
|
||||||
|
if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
|
||||||
apk --update add libzip-dev && \
|
apk --update add libzip-dev && \
|
||||||
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
|
# Install the zip extension
|
||||||
docker-php-ext-install zip \
|
docker-php-ext-install zip \
|
||||||
;fi
|
;fi
|
||||||
|
@ -75,7 +82,7 @@ RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
|
||||||
# Install MySQL Client:
|
# Install MySQL Client:
|
||||||
ARG INSTALL_MYSQL_CLIENT=false
|
ARG INSTALL_MYSQL_CLIENT=false
|
||||||
RUN if [ ${INSTALL_MYSQL_CLIENT} = true ]; then \
|
RUN if [ ${INSTALL_MYSQL_CLIENT} = true ]; then \
|
||||||
if [ ${PHP_VERSION} = "7.3" ]; then \
|
if [ ${LARADOCK_PHP_VERSION} = "7.3" ]; then \
|
||||||
apk --update add default-mysql-client \
|
apk --update add default-mysql-client \
|
||||||
;else \
|
;else \
|
||||||
apk --update add mysql-client \
|
apk --update add mysql-client \
|
||||||
|
|
Loading…
Reference in New Issue