浏览代码

Required PHP extension 'Imagick' was not loaded #530

Mark Shust 3 年之前
父节点
当前提交
c20d88da45
共有 3 个文件被更改,包括 12 次插入0 次删除
  1. 4 0
      images/php/7.3/Dockerfile
  2. 4 0
      images/php/7.4/Dockerfile
  3. 4 0
      images/php/8.0/Dockerfile

+ 4 - 0
images/php/7.3/Dockerfile

@@ -71,6 +71,10 @@ RUN pecl install ssh2-1.2 \
 RUN pecl install redis \
   && docker-php-ext-enable redis
 
+RUN apt-get install libmagickwand-dev \
+  && pecl install imagick  \
+  && docker-php-ext-enable imagick
+
 RUN groupadd -g "$APP_ID" app \
   && useradd -g "$APP_ID" -u "$APP_ID" -d /var/www -s /bin/bash app
 

+ 4 - 0
images/php/7.4/Dockerfile

@@ -71,6 +71,10 @@ RUN pecl install ssh2-1.2 \
 RUN pecl install redis \
   && docker-php-ext-enable redis
 
+RUN apt-get install libmagickwand-dev \
+  && pecl install imagick  \
+  && docker-php-ext-enable imagick
+
 RUN groupadd -g "$APP_ID" app \
   && useradd -g "$APP_ID" -u "$APP_ID" -d /var/www -s /bin/bash app
 

+ 4 - 0
images/php/8.0/Dockerfile

@@ -58,6 +58,10 @@ RUN pecl install ssh2-1.3.1 \
 RUN pecl install redis \
   && docker-php-ext-enable redis
 
+RUN apt-get install libmagickwand-dev \
+  && pecl install imagick  \
+  && docker-php-ext-enable imagick
+
 RUN groupadd -g "$APP_ID" app \
   && useradd -g "$APP_ID" -u "$APP_ID" -d /var/www -s /bin/bash app