|
@@ -1,2 +1,19 @@
|
|
FROM php:7-fpm
|
|
FROM php:7-fpm
|
|
-RUN docker-php-ext-install pdo pdo_mysql
|
|
|
|
|
|
+
|
|
|
|
+RUN apt-get update && \
|
|
|
|
+ apt-get install -y --no-install-recommends \
|
|
|
|
+ libfreetype6-dev \
|
|
|
|
+ libjpeg62-turbo-dev \
|
|
|
|
+ libpng-dev \
|
|
|
|
+ libmagickwand-dev \
|
|
|
|
+ imagemagick && \
|
|
|
|
+ rm -rf /var/lib/apt/lists/*
|
|
|
|
+
|
|
|
|
+RUN export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" && \
|
|
|
|
+ pecl install imagick && \
|
|
|
|
+ docker-php-ext-enable imagick
|
|
|
|
+
|
|
|
|
+RUN docker-php-ext-install pdo pdo_mysql
|
|
|
|
+
|
|
|
|
+RUN docker-php-ext-configure gd --with-freetype --with-jpeg && \
|
|
|
|
+ docker-php-ext-install gd
|