Dockerfile 1.1 KB

123456789101112131415161718192021222324252627282930313233
  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. 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. RUN export COMPOSER_HOME=/usr/local/composer && \
  19. curl -sS https://getcomposer.org/installer \
  20. | php -- --install-dir=/usr/local/bin --filename=composer && \
  21. curl https://drupalconsole.com/installer \
  22. -L -o /usr/local/bin/drupal && \
  23. chmod +x /usr/local/bin/drupal && \
  24. curl https://github.com/drush-ops/drush-launcher/releases/download/0.6.0/drush.phar \
  25. -L -o /usr/local/bin/drush && \
  26. chmod +x /usr/local/bin/drush
  27. COPY ./php-custom.ini /usr/local/etc/php/conf.d/php-custom.ini
  28. COPY ./bashrc /root/.bashrc
  29. COPY ./inputrc /root/.inputrc