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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. FROM php:7.1.20-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. # Run the command on container startup
  11. CMD cron && tail -f /var/log/cron.log
  12. # Install important libraries
  13. RUN apt-get -y install --fix-missing apt-utils build-essential git curl libcurl3 libcurl3-dev zip
  14. # Composer
  15. RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
  16. # Install xdebug
  17. RUN pecl install xdebug-2.5.0
  18. RUN docker-php-ext-enable xdebug
  19. # Other PHP7 Extensions
  20. RUN apt-get -y install libmcrypt-dev
  21. RUN docker-php-ext-install mcrypt
  22. RUN apt-get -y install libsqlite3-dev libsqlite3-0 mysql-client
  23. RUN docker-php-ext-install pdo_mysql
  24. RUN docker-php-ext-install pdo_sqlite
  25. RUN docker-php-ext-install mysqli
  26. RUN docker-php-ext-install curl
  27. RUN docker-php-ext-install tokenizer
  28. RUN docker-php-ext-install json
  29. RUN apt-get -y install zlib1g-dev
  30. RUN docker-php-ext-install zip
  31. RUN apt-get -y install libicu-dev
  32. RUN docker-php-ext-install -j$(nproc) intl
  33. RUN docker-php-ext-install mbstring
  34. RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev
  35. RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
  36. RUN docker-php-ext-install -j$(nproc) gd
  37. # Enable apache modules
  38. RUN a2enmod rewrite headers