-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (27 loc) · 890 Bytes
/
Dockerfile
File metadata and controls
38 lines (27 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
ARG WORDPRESS_IMAGE
FROM $WORDPRESS_IMAGE
ARG PHP_XDEBUG_BRANCH
RUN apt-get update
RUN apt-get install -y --no-install-recommends ssl-cert
RUN a2enmod ssl && a2ensite default-ssl
RUN apt-get -y install git unzip
COPY libs/xdebug.zip /tmp/xdebug.zip
RUN cd /tmp && \
unzip xdebug.zip && \
cd xdebug && \
git checkout $PHP_XDEBUG_BRANCH && \
phpize && \
./configure --enable-xdebug && \
make && \
make install && \
rm -rf /tmp/xdebug /tmp/xdebug.zip
RUN docker-php-ext-enable xdebug
RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && \
chmod +x wp-cli.phar && \
mv wp-cli.phar /usr/local/bin/wp
RUN rm -r /var/lib/apt/lists/*
WORKDIR /var/www/html
RUN groupadd -g 1000 www
RUN useradd -u 1000 -ms /bin/bash -g www www
RUN chown -R www:www /var/www/html
RUN mkdir /tmp/xoutput && chmod 777 /tmp/xoutput/