Skip to content

Commit

Permalink
Don't install libzip for more recent php versions
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasmullie committed Dec 27, 2020
1 parent 6da68a1 commit 54738b5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Expand Up @@ -5,8 +5,9 @@ COPY . /var/www
WORKDIR /var/www

RUN apt-get update
RUN apt-get install -y zip unzip zlib1g-dev
RUN docker-php-ext-install zip
RUN apt-get install git
RUN if [[ `php-config --vernum` -ge 73000 ]]; then apt-get install -y zip unzip zlib1g-dev; fi
RUN if [[ `php-config --vernum` -ge 73000 ]]; then docker-php-ext-install zip; fi
RUN docker-php-ext-install pcntl
RUN curl -sS https://getcomposer.org/installer | php
RUN mv composer.phar /usr/local/bin/composer
Expand Down

0 comments on commit 54738b5

Please sign in to comment.