Dockerfile 522 B

12345678910111213141516171819
  1. FROM php:7-fpm
  2. RUN apt-get update && \
  3. apt-get install -y --no-install-recommends \
  4. libfreetype6-dev \
  5. libjpeg62-turbo-dev \
  6. libpng-dev \
  7. libmagickwand-dev \
  8. imagemagick && \
  9. rm -rf /var/lib/apt/lists/*
  10. RUN export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" && \
  11. pecl install imagick && \
  12. docker-php-ext-enable imagick
  13. RUN docker-php-ext-install pdo pdo_mysql
  14. RUN docker-php-ext-configure gd --with-freetype --with-jpeg && \
  15. docker-php-ext-install gd