Skip to content

Commit b053ae3

Browse files
Don't install libzip for more recent php versions
1 parent 6da68a1 commit b053ae3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ COPY . /var/www
55
WORKDIR /var/www
66

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

0 commit comments

Comments
 (0)