diff --git a/docker-compose.yml b/docker-compose.yml index b7cbd30b..0c3ff899 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -185,6 +185,7 @@ services: - INSTALL_PGSQL=${PHP_WORKER_INSTALL_PGSQL} - INSTALL_BCMATH=${PHP_WORKER_INSTALL_BCMATH} - INSTALL_SOAP=${PHP_WORKER_INSTALL_SOAP} + - INSTALL_ZIP_ARCHIVE=${PHP_WORKER_INSTALL_ZIP_ARCHIVE} volumes: - ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER} - ./php-worker/supervisord.d:/etc/supervisord.d diff --git a/env-example b/env-example index 7df991be..b9866d63 100644 --- a/env-example +++ b/env-example @@ -170,6 +170,7 @@ PHP_FPM_INSTALL_YAML=false PHP_WORKER_INSTALL_PGSQL=false PHP_WORKER_INSTALL_BCMATH=false PHP_WORKER_INSTALL_SOAP=false +PHP_WORKER_INSTALL_ZIP_ARCHIVE=false ### NGINX ################################################# diff --git a/php-worker/Dockerfile b/php-worker/Dockerfile index 50a51903..555e59fc 100644 --- a/php-worker/Dockerfile +++ b/php-worker/Dockerfile @@ -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