Dockerfile 802 B

1234567891011121314151617181920212223
  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. zip \
  9. && docker-php-ext-install -j$(nproc) iconv mcrypt \
  10. && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
  11. && docker-php-ext-install -j$(nproc) gd
  12. RUN docker-php-ext-install pdo_mysql zip
  13. RUN apt-get install -y git vim
  14. RUN export COMPOSER_HOME=/usr/local/composer && \
  15. curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
  16. composer global require drush/drush:6.5.0 && \
  17. composer global install && \
  18. ln -s /usr/local/composer/vendor/drush/drush/drush /usr/local/bin/drush