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 b053ae3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ 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 then apt-get install -y zip unzip zlib1g-dev
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 b053ae3

Please sign in to comment.