@@ -38,6 +38,14 @@ RUN apt-get update -yqq && \
3838# to add more Software's or remove existing one, you need to edit the
3939# base image (https://github.com/Laradock/php-fpm).
4040#
41+ # next lines are here becase there is no auto build on dockerhub see https://github.com/laradock/laradock/pull/1903#issuecomment-463142846
42+ USER root
43+
44+ RUN apt-get install libzip-dev zip unzip -y && \
45+ docker-php-ext-configure zip --with-libzip && \
46+ # Install the zip extension
47+ docker-php-ext-install zip \
48+
4149
4250#
4351# --------------------------------------------------------------------------
@@ -47,7 +55,7 @@ RUN apt-get update -yqq && \
4755# Optional Software's will only be installed if you set them to `true`
4856# in the `docker-compose.yml` before the build.
4957# Example:
50- # - INSTALL_ZIP_ARCHIVE =true
58+ # - INSTALL_SOAP =true
5159#
5260
5361# ##########################################################################
@@ -250,19 +258,6 @@ RUN if [ ${INSTALL_AMQP} = true ]; then \
250258 docker-php-ext-install sockets \
251259;fi
252260
253- # ##########################################################################
254- # ZipArchive:
255- # ##########################################################################
256-
257- ARG INSTALL_ZIP_ARCHIVE=false
258-
259- RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
260- apt-get install libzip-dev -y && \
261- docker-php-ext-configure zip --with-libzip && \
262- # Install the zip extension
263- docker-php-ext-install zip \
264- ;fi
265-
266261# ##########################################################################
267262# pcntl
268263# ##########################################################################
0 commit comments