Skip to content

Commit 5d4f368

Browse files
committed
fix: Add zip extension
1 parent fa93ff9 commit 5d4f368

File tree

1 file changed

+21
-14
lines changed

1 file changed

+21
-14
lines changed

Dockerfile

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,43 +7,50 @@ ARG TIMEZONE=Europe/Paris
77
# Add extension to php
88
RUN apt-get update \
99
&& apt-get install -y \
10-
libmagickwand-dev \
10+
curl \
11+
gettext \
12+
git \
13+
graphicsmagick-imagemagick-compat \
14+
httping \
15+
libcurl4-openssl-dev \
16+
libfcgi-bin \
1117
libfreetype6-dev \
1218
libjpeg62-turbo-dev \
19+
libmagickwand-dev \
1320
libmcrypt-dev \
1421
libpng-dev \
1522
libpq-dev \
16-
libxslt-dev \
17-
libcurl4-openssl-dev \
1823
libssl-dev \
19-
graphicsmagick-imagemagick-compat \
20-
httping \
21-
msmtp \
24+
libxslt-dev \
25+
libzip-dev \
2226
locales \
23-
gettext \
27+
msmtp \
28+
postgresql-client \
2429
vim \
25-
curl \
2630
wget \
27-
git \
2831
zip \
29-
postgresql-client \
30-
libfcgi-bin \
3132
&& apt-get clean \
3233
&& rm -r /var/lib/apt/lists/* \
3334
\
3435
&& echo "set mouse-=a" > /root/.vimrc \
35-
&& echo "syn on" >> /root/.vimrc \
36+
&& echo "syn on" >> /root/.vimrc
37+
38+
ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
39+
# See https://github.com/Imagick/imagick/issues/643#issuecomment-2086949716
40+
RUN install-php-extensions \
41+
Imagick/imagick@ffa23eb0bc6796349dce12a984b3b70079e7bdd3 \
3642
\
3743
&& docker-php-ext-install bcmath gettext mysqli pdo_mysql pgsql pdo_pgsql bz2 xsl pcntl \
3844
&& pecl install raphf \
3945
&& docker-php-ext-enable raphf pcntl \
40-
&& pecl install mcrypt imagick pecl_http \
41-
&& docker-php-ext-enable imagick mcrypt http \
46+
&& pecl install mcrypt pecl_http \
47+
&& docker-php-ext-enable mcrypt http \
4248
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
4349
&& docker-php-ext-install -j$(nproc) gd \
4450
&& docker-php-ext-configure opcache --enable-opcache \
4551
&& docker-php-ext-install opcache \
4652
&& docker-php-ext-install sockets \
53+
&& docker-php-ext-install zip \
4754
\
4855
&& pecl install -o -f redis \
4956
&& rm -rf /tmp/pear \

0 commit comments

Comments
 (0)