-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
45 lines (35 loc) · 1.44 KB
/
Dockerfile
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
39
40
41
42
43
44
45
FROM php:5
COPY php.ini /usr/local/etc/php/
RUN apt-get update && apt-get install -y \
git \
libbz2-dev \
wget \
zip \
&& docker-php-ext-install \
bz2
# INSTALL COMPOSER
RUN wget -cq https://getcomposer.org/composer.phar -O /usr/local/bin/composer && \
chmod a+x /usr/local/bin/composer
#INSTALL PHP_CodeSniffer
RUN wget -cq https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar -O /usr/local/bin/phpcs && \
chmod a+x /usr/local/bin/phpcs
RUN wget -cq https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar -O /usr/local/bin/phpcbf && \
chmod a+x /usr/local/bin/phpcbf
#INSTALL PHP-CS-FIXER
RUN wget -cq http://get.sensiolabs.org/php-cs-fixer.phar -O /usr/local/bin/php-cs-fixer && \
chmod a+x /usr/local/bin/php-cs-fixer
#INSTALL PHP MESS DETECTOR
RUN wget -cq http://static.phpmd.org/php/latest/phpmd.phar -O /usr/local/bin/phpmd && \
chmod a+x /usr/local/bin/phpmd
#INSTALL PHP Copy/Paste Detector
RUN wget -cq https://phar.phpunit.de/phpcpd.phar -O /usr/local/bin/phpcpd && \
chmod a+x /usr/local/bin/phpcpd
#INSTALL PHP Dead Code Detector
RUN wget -cq https://phar.phpunit.de/phpdcd.phar -O /usr/local/bin/phpdcd && \
chmod a+x /usr/local/bin/phpdcd
#INSTALL PHPLOC
RUN wget -cq https://phar.phpunit.de/phploc.phar -O /usr/local/bin/phploc && \
chmod a+x /usr/local/bin/phploc
#INSTALL PHP_Depend
RUN wget -cq http://static.pdepend.org/php/latest/pdepend.phar -O /usr/local/bin/pdepend && \
chmod a+x /usr/local/bin/pdepend