We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6da68a1 commit b77bed6Copy full SHA for b77bed6
Dockerfile
@@ -5,8 +5,9 @@ COPY . /var/www
5
WORKDIR /var/www
6
7
RUN apt-get update
8
-RUN apt-get install -y zip unzip zlib1g-dev
9
-RUN docker-php-ext-install zip
+RUN apt-get install -y git
+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
11
RUN docker-php-ext-install pcntl
12
RUN curl -sS https://getcomposer.org/installer | php
13
RUN mv composer.phar /usr/local/bin/composer
0 commit comments