Dockerfile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. FROM php:7.3-fpm
  2. RUN apt-get update && apt-get install -y \
  3. libfreetype6-dev \
  4. libjpeg62-turbo-dev \
  5. libmcrypt-dev \
  6. libpng-dev \
  7. mariadb-client \
  8. zip \
  9. libzip-dev && \
  10. # docker-php-ext-install -j$(nproc) iconv && \
  11. docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ && \
  12. apt-get install -y imagemagick libmagickwand-dev && \
  13. #pecl install imagick && docker-php-ext-enable imagick && \
  14. docker-php-ext-install -j$(nproc) gd && \
  15. docker-php-ext-install pdo_mysql mysqli zip && \
  16. docker-php-ext-install opcache && \
  17. docker-php-ext-install bcmath && \
  18. apt-get install -y git vim && \
  19. # pecl install redis-4.3.0 && \
  20. # pecl install xdebug-2.7.0 && \
  21. docker-php-ext-enable redis xdebug mysqli
  22. RUN export COMPOSER_HOME=/usr/local/composer && \
  23. curl -sS https://getcomposer.org/installer \
  24. | php -- --install-dir=/usr/local/bin --filename=composer && \
  25. curl https://drupalconsole.com/installer \
  26. -L -o /usr/local/bin/drupal && \
  27. chmod +x /usr/local/bin/drupal && \
  28. curl https://github.com/drush-ops/drush-launcher/releases/download/0.6.0/drush.phar \
  29. -L -o /usr/local/bin/drush && \
  30. chmod +x /usr/local/bin/drush
  31. RUN apt-get install -y curl && \
  32. curl -sL https://deb.nodesource.com/setup_11.x | bash - && \
  33. curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
  34. echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
  35. apt-get update && \
  36. apt-get install -y nodejs yarn