forked from bmlt-enabled/crouton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
21 lines (17 loc) · 790 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM wordpress:5.4.1-php7.2-apache
RUN apt-get update && \
apt-get install -y --no-install-recommends ssl-cert && \
rm -r /var/lib/apt/lists/* && \
a2enmod ssl rewrite expires && \
a2ensite default-ssl
ENV PHP_INI_PATH "/usr/local/etc/php/php.ini"
RUN pecl install xdebug-2.6.1 && docker-php-ext-enable xdebug \
&& 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_DEBUG" >> ${PHP_INI_PATH} \
&& echo "xdebug.remote_autostart=1" >> ${PHP_INI_PATH} \
&& echo "xdebug.remote_log=/tmp/xdebug.log" >> ${PHP_INI_PATH}
EXPOSE 80
EXPOSE 443