Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (34 sloc) 1.14 KB
FROM php:7.2-apache
COPY scripts/ /usr/local/bin/
COPY health.html noindex.html /var/www/extra/
RUN chmod +x -R /usr/local/bin && \
apt-get update -y && \
apt-get install -y \
unzip \
libpq-dev \
zlib1g-dev \
libmagickwand-dev && \
##apache
a2enmod ssl && \
a2enmod expires && \
a2enmod rewrite && \
docker-php-ext-install gd intl pdo_pgsql pdo_mysql zip && \
pecl install imagick xdebug-2.7.0beta1 && \
docker-php-ext-enable gd imagick xdebug opcache sodium && \
pecl install -o -f redis && \
rm -rf /tmp/pear && \
docker-php-ext-enable redis && \
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
#hopefully this would speed some things up
composer global require hirak/prestissimo
#Configurable XDEBUG options
ENV XDEBUG_ON ''
ENV XDEBUG_HOST ''
ENV XDEBUG_PORT ''
ENV XDEBUG_IDEKEY ''
ENV XDEBUG_FILE_PATH='/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini'
#configure your doc root
ENV APACHE_DOCUMENT_ROOT /var/www/html/web
ENTRYPOINT ["docker-entrypoint.sh"]
EXPOSE 80 443
CMD ["apache2-foreground"]