Dockerfile 1.0 KB

1234567891011121314151617181920212223242526272829
  1. FROM php:5.6-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) 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. docker-php-ext-install pdo_mysql zip && \
  13. docker-php-ext-install opcache && \
  14. apt-get install -y git vim && \
  15. pecl install redis-3.1.0 && \
  16. pecl install xdebug-2.5.0 && \
  17. docker-php-ext-enable redis xdebug && \
  18. export COMPOSER_HOME=/usr/local/composer && \
  19. curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
  20. composer global require drush/drush:8 && \
  21. composer global install && \
  22. ln -s /usr/local/composer/vendor/drush/drush/drush /usr/local/bin/drush
  23. COPY ./php-custom.ini /usr/local/etc/php/conf.d/php-custom.ini
  24. COPY ./bashrc /root/.bashrc
  25. COPY ./inputrc /root/.inputrc