FROM php:7.2.10-apache LABEL maintainer='André Vitor Cuba de Miranda $PHP_INI_DIR/conf.d/memory-limit.ini # Time Zone RUN echo "date.timezone=${PHP_TIMEZONE:-UTC}" > $PHP_INI_DIR/conf.d/date_timezone.ini # Install Composer ENV COMPOSER_ALLOW_SUPERUSER=1 RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer # Composer Parallel RUN composer global require hirak/prestissimo # installs linux packages for redis and mongodb RUN pecl install redis-3.1.1 mongodb RUN docker-php-ext-enable redis mongodb # Install APCU # Install APCu and APC backward compatibility RUN pecl install apcu \ && pecl install apcu_bc-1.0.3 \ && docker-php-ext-enable apcu --ini-name 10-docker-php-ext-apcu.ini \ && docker-php-ext-enable apc --ini-name 20-docker-php-ext-apc.ini # Install XDebug RUN pecl install xdebug-2.6.0 RUN docker-php-ext-enable xdebug RUN a2enmod rewrite # Clean RUN apt-get clean -y RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* WORKDIR "/var/www/html" EXPOSE 80