-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 884 Bytes
/
Dockerfile
File metadata and controls
28 lines (20 loc) · 884 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
FROM quay.io/glofox/api:test-latest
MAINTAINER Glofox <glofox@glofox.com>
RUN apt-get update \
&& apt-get install wget curl git python-pip -y
RUN wget http://cs.sensiolabs.org/download/php-cs-fixer-v2.phar -O php-cs-fixer.phar \
&& chmod +x php-cs-fixer.phar \
&& mv php-cs-fixer.phar /usr/bin/php-cs-fixer
RUN curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar \
&& chmod +x phpcs.phar \
&& mv phpcs.phar /usr/bin/phpcs
RUN curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar \
&& chmod +x phpcbf.phar \
&& mv phpcbf.phar /usr/bin/phpcbf
RUN wget -c http://static.phpmd.org/php/latest/phpmd.phar \
&& chmod +x phpmd.phar \
&& mv phpmd.phar /usr/bin/phpmd
RUN wget https://phar.phpunit.de/phpcpd.phar \
&& chmod +x phpcpd.phar \
&& mv phpcpd.phar /usr/bin/phpcpd
COPY ./pre_commit_hooks /pre_commit_hooks