Dockerfile 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. FROM php:7.0-fpm
  2. COPY ./php-custom.ini /usr/local/etc/php/conf.d/php-custom.ini
  3. RUN apt-get update && apt-get install -y \
  4. libfreetype6-dev \
  5. libjpeg62-turbo-dev \
  6. libmcrypt-dev \
  7. libpng-dev \
  8. mysql-client \
  9. zip && \
  10. docker-php-ext-install -j$(nproc) mcrypt iconv && \
  11. docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ && \
  12. apt-get install -y imagemagick libmagickwand-dev && \
  13. pecl install imagick && docker-php-ext-enable imagick && \
  14. docker-php-ext-install -j$(nproc) gd && \
  15. docker-php-ext-install pdo_mysql zip && \
  16. docker-php-ext-install opcache && \
  17. apt-get install -y git vim && \
  18. pecl install redis-3.1.0 && \
  19. pecl install xdebug-2.5.0 && \
  20. docker-php-ext-enable redis xdebug
  21. RUN export COMPOSER_HOME=/usr/local/composer && \
  22. curl -sS https://getcomposer.org/installer \
  23. | php -- --install-dir=/usr/local/bin --filename=composer && \
  24. curl https://drupalconsole.com/installer \
  25. -L -o /usr/local/bin/drupal && \
  26. chmod +x /usr/local/bin/drupal && \
  27. curl https://github.com/drush-ops/drush-launcher/releases/download/0.6.0/drush.phar \
  28. -L -o /usr/local/bin/drush && \
  29. chmod +x /usr/local/bin/drush