-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
22 lines (16 loc) · 831 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM wordpress
RUN apt-get update && apt-get install -y \
wget \
unzip
RUN wget https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
RUN chmod +x wp-cli.phar
RUN mv wp-cli.phar /usr/local/bin/wp
RUN echo "memory_limit = -1" > $PHP_INI_DIR/conf.d/custom.ini
RUN cd /var/www/html/wp-content/plugins \
&& wget https://downloads.wordpress.org/plugin/woocommerce.9.0.2.zip \
&& unzip woocommerce.9.0.2.zip
RUN pecl install xdebug && docker-php-ext-enable xdebug
RUN echo "zend_extension = xdebug" >> /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.mode = develop,debug" >> /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.start_with_request = yes" >> /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.client_host = host.docker.internal" >> /usr/local/etc/php/conf.d/xdebug.ini