1. FROM php:5.6-fpm
  2. RUN apt-get update \
  3. && apt-get install -y --no-install-recommends \
  4. libfreetype6-dev \
  5. libjpeg62-turbo-dev \
  6. libmcrypt-dev \
  7. libpng-dev \
  8. libmemcached-dev \
  9. zlib1g-dev \
  10. libbz2-dev \
  11. libgmp-dev \
  12. libedit-dev \
  13. libxml2-dev \
  14. libxslt-dev \
  15. openssl \
  16. libssl-dev \
  17. libpq-dev \
  18. && docker-php-ext-install -j$(nproc) iconv \
  19. && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
  20. && docker-php-ext-install -j$(nproc) gd \
  21. bcmath \
  22. mysql \
  23. mysqli \
  24. pdo_mysql \
  25. bz2 \
  26. calendar \
  27. exif \
  28. gettext \
  29. intl \
  30. pcntl \
  31. readline \
  32. pgsql \
  33. pdo_pgsql \
  34. shmop \
  35. sockets \
  36. wddx \
  37. xsl \
  38. zip \
  39. opcache \
  40. mcrypt \
  41. && pecl install igbinary-1.2.1 && docker-php-ext-enable igbinary \
  42. && echo "\n" | pecl install redis-4.3.0 && docker-php-ext-enable redis \
  43. && docker-php-source delete \
  44. && apt-get clean; rm -rf /var/lib/apt/lists/
  45. RUN usermod -u 1000 www-data && groupmod -g 1000 www-data && chown -R www-data:www-data /var/www
  46. WORKDIR /var/www