Dockerfile 1.2 KB

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