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.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. FROM php:5.6-apache
  2. RUN apt-get -y update && apt-get upgrade -y
  3. # Install tools && libraries
  4. RUN apt-get -y install --fix-missing apt-utils nano wget dialog cron \
  5. build-essential git curl libcurl3 libcurl3-dev zip \
  6. libmcrypt-dev libsqlite3-dev libsqlite3-0 mysql-client \
  7. zlib1g-dev libicu-dev libfreetype6-dev libjpeg62-turbo-dev libpng-dev \
  8. && rm -rf /var/lib/apt/lists/*
  9. # Composer
  10. RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
  11. # PHP5 Extensions
  12. RUN docker-php-ext-install curl \
  13. && docker-php-ext-install tokenizer \
  14. && docker-php-ext-install json \
  15. && docker-php-ext-install mcrypt \
  16. && docker-php-ext-install pdo_mysql \
  17. && docker-php-ext-install pdo_sqlite \
  18. && docker-php-ext-install mysqli \
  19. && docker-php-ext-install zip \
  20. && docker-php-ext-install bcmath \
  21. && docker-php-ext-install -j$(nproc) intl \
  22. && docker-php-ext-install mbstring \
  23. && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
  24. && docker-php-ext-install -j$(nproc) gd \
  25. && pecl install xdebug-2.5.5 && docker-php-ext-enable xdebug \
  26. && echo "xdebug.remote_enable=1" >> /usr/local/etc/php/php.ini
  27. # Enable apache modules
  28. RUN a2enmod rewrite headers
  29. # Copy hello-cron file to the cron.d directory
  30. #COPY hello-cron /etc/cron.d/hello-cron
  31. # Give execution rights on the cron job
  32. #RUN chmod 0644 /etc/cron.d/hello-cron
  33. # Apply cron job
  34. #RUN crontab /etc/cron.d/hello-cron
  35. # Create the log file to be able to run tail
  36. RUN touch /var/log/cron.log
  37. # Run the command on container startup
  38. CMD cron && tail -f /var/log/cron.log
  39. EXPOSE 80
  40. ENTRYPOINT ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]