Skip to content

Commit 8108a55

Browse files
committed
Update Dockerfile to install PHP zip extension
Drupal uses Composer a lot; especially Drupal 8, and there are a lot of modules, requiring composer, are being back ported to Drupal 7. Composer use PHP zip extension. Otherwise, see docker-library/php#60 Also add zip extension to Drupal 7.
1 parent cae697c commit 8108a55

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

7/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ RUN a2enmod rewrite
77
RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev libpq-dev \
88
&& rm -rf /var/lib/apt/lists/* \
99
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
10-
&& docker-php-ext-install gd mbstring pdo pdo_mysql pdo_pgsql
10+
&& docker-php-ext-install gd mbstring pdo pdo_mysql pdo_pgsql zip
1111

1212
WORKDIR /var/www/html
1313

8/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ RUN a2enmod rewrite
77
RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev libpq-dev \
88
&& rm -rf /var/lib/apt/lists/* \
99
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
10-
&& docker-php-ext-install gd mbstring opcache pdo pdo_mysql pdo_pgsql
10+
&& docker-php-ext-install gd mbstring opcache pdo pdo_mysql pdo_pgsql zip
1111

1212
# set recommended PHP.ini settings
1313
# see https://secure.php.net/manual/en/opcache.installation.php

0 commit comments

Comments
 (0)