No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. FROM php:7.2-apache
  2. RUN apt-get -y update --fix-missing
  3. RUN apt-get upgrade -y
  4. # Install useful tools
  5. RUN apt-get -y install apt-utils nano wget dialog
  6. # Install useful cron
  7. RUN apt-get -y install cron
  8. # Create the log file to be able to run tail
  9. RUN touch /var/log/cron.log
  10. # Install important libraries
  11. RUN apt-get -y install --fix-missing apt-utils build-essential git curl libcurl3 libcurl3-dev zip openssl
  12. # Composer
  13. RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
  14. # Install xdebug
  15. RUN pecl install xdebug-2.6.0
  16. RUN docker-php-ext-enable xdebug
  17. # Install redis
  18. RUN pecl install redis-4.0.1
  19. RUN docker-php-ext-enable redis
  20. # Other PHP7 Extensions
  21. RUN apt-get -y install libsqlite3-dev libsqlite3-0 mysql-client
  22. RUN docker-php-ext-install pdo_mysql
  23. RUN docker-php-ext-install pdo_sqlite
  24. RUN docker-php-ext-install mysqli
  25. RUN docker-php-ext-install curl
  26. RUN docker-php-ext-install tokenizer
  27. RUN docker-php-ext-install json
  28. RUN apt-get -y install zlib1g-dev
  29. RUN docker-php-ext-install zip
  30. RUN apt-get -y install libicu-dev
  31. RUN docker-php-ext-install -j$(nproc) intl
  32. RUN docker-php-ext-install mbstring
  33. RUN docker-php-ext-install gettext
  34. RUN docker-php-ext-install bcmath
  35. RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev
  36. RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
  37. RUN docker-php-ext-install -j$(nproc) gd
  38. # Enable apache modules
  39. RUN a2enmod rewrite headers
  40. CMD [ "cron", "-f" ]
  41. CMD ["/usr/sbin/apachectl","-DFOREGROUND"]