Skip to content

Commit b77bed6

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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ 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 apt-get install -y git
9+
RUN if [[ `php-config --vernum` -ge 73000 ]]; then apt-get install -y zip unzip zlib1g-dev; fi
10+
RUN if [[ `php-config --vernum` -ge 73000 ]]; then docker-php-ext-install zip; fi
1011
RUN docker-php-ext-install pcntl
1112
RUN curl -sS https://getcomposer.org/installer | php
1213
RUN mv composer.phar /usr/local/bin/composer

0 commit comments

Comments
 (0)