-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·30 lines (24 loc) · 1.25 KB
/
Dockerfile
File metadata and controls
executable file
·30 lines (24 loc) · 1.25 KB
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
FROM php:7.2-fpm-alpine
MAINTAINER "Nicolas Giraud" <nicolas.giraud.dev@gmail.com>
MAINTAINER "Pierre-Arthur Desportes" <pierre-arthur.desportes@aareon.fr>
RUN curl -Ls https://phar.phpunit.de/phpunit.phar > /usr/local/bin/phpunit && \
chmod +x /usr/local/bin/phpunit && \
# Then here we go to install the whole universe for xdebug to enable the code coverage...
apk update && \
apk add --no-cache g++ make autoconf zlib-dev && \
docker-php-source extract && \
pecl install xdebug && \
docker-php-ext-install zip && \
docker-php-ext-enable xdebug && \
docker-php-source delete && \
echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
echo "xdebug.remote_port=9000" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
echo "xdebug.remote_handler=dbgp" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
echo "xdebug.remote_connect_back=0" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
apk del g++ make autoconf && \
rm -rf /var/lib/apt/lists/* /var/cache/apk/* /tmp/*
VOLUME ["/data"]
WORKDIR /data/www
ENTRYPOINT ["phpunit"]
CMD ["--help"]