Dockerfile 811 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. libzip-dev \
  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 opcache && \
  14. docker-php-ext-configure zip --with-libzip && \
  15. docker-php-ext-install zip && \
  16. apt-get install -y git vim && \
  17. pecl install xdebug-2.5.0 && \
  18. docker-php-ext-enable xdebug
  19. RUN export COMPOSER_HOME=/usr/local/composer && \
  20. curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer