forked from copona/copona
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
16 lines (15 loc) · 891 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM webdevops/php-apache-dev:centos-7-php56
EXPOSE 80
RUN echo display_errors = On >> /opt/docker/etc/php/php.ini
RUN echo error_reporting = E_ALL >> /opt/docker/etc/php/php.ini
RUN echo display_startup_errors = On >> /opt/docker/etc/php/php.ini
RUN echo always_populate_raw_post_data = -1 >> /opt/docker/etc/php/php.ini
RUN mkdir -p /var/lib/php/session && chmod 777 /var/lib/php/session
# xdebug
RUN echo "xdebug.idekey = PHPSTORM" >> /opt/docker/etc/php/php.ini
RUN echo "xdebug.default_enable = 0" >> /opt/docker/etc/php/php.ini
RUN echo "xdebug.remote_enable = 1" >> /opt/docker/etc/php/php.ini
RUN echo "xdebug.remote_autostart = 1" >> /opt/docker/etc/php/php.ini
RUN echo "xdebug.remote_connect_back = 0" >> /opt/docker/etc/php/php.ini
RUN echo "xdebug.profiler_enable = 0" >> /opt/docker/etc/php/php.ini
RUN echo "xdebug.remote_host = 10.254.254.254" >> /opt/docker/etc/php/php.ini