Dockerfile 981 B

12345678910111213141516171819202122232425
  1. FROM php:5.6-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) iconv mcrypt && \
  11. docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ && \
  12. docker-php-ext-install -j$(nproc) gd && \
  13. docker-php-ext-install pdo_mysql zip && \
  14. docker-php-ext-install opcache && \
  15. apt-get install -y git vim && \
  16. pecl install redis-3.1.0 && \
  17. pecl install xdebug-2.5.0 && \
  18. docker-php-ext-enable redis xdebug && \
  19. export COMPOSER_HOME=/usr/local/composer && \
  20. curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
  21. composer global require drush/drush:6.5.0 && \
  22. composer global install && \
  23. ln -s /usr/local/composer/vendor/drush/drush/drush /usr/local/bin/drush