forked from bmlt-enabled/yap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
21 lines (16 loc) · 930 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM php:7.1-apache
ENV PHP_INI_PATH "/usr/local/etc/php/php.ini"
RUN docker-php-ext-install pdo pdo_mysql
RUN echo "log_errors = On" >> ${PHP_INI_PATH} \
&& echo "error_reporting = E_ALL" >> ${PHP_INI_PATH} \
&& echo "error_log=/var/www/php_error.log" >> ${PHP_INI_PATH}
RUN pecl install xdebug-2.9.1 && docker-php-ext-enable xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" >> ${PHP_INI_PATH} \
&& echo "xdebug.remote_port=9000" >> ${PHP_INI_PATH} \
&& echo "xdebug.remote_enable=1" >> ${PHP_INI_PATH} \
&& echo "xdebug.remote_connect_back=0" >> ${PHP_INI_PATH} \
&& echo "xdebug.remote_host=docker.for.mac.localhost" >> ${PHP_INI_PATH} \
&& echo "xdebug.idekey=IDEA_YAP_DEBUG" >> ${PHP_INI_PATH} \
&& echo "xdebug.remote_autostart=1" >> ${PHP_INI_PATH} \
&& echo "xdebug.remote_log=/tmp/xdebug.log" >> ${PHP_INI_PATH}
RUN a2enmod rewrite expires