-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (16 loc) · 795 Bytes
/
Dockerfile
File metadata and controls
22 lines (16 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM php:7.2-fpm-alpine
MAINTAINER "Nicolas Giraud" <nicolas.giraud@aareon.com>
COPY Standards/CodeSnifferExtended /data/Standards/CodeSnifferExtended
RUN rm -rf /data/Standards/CodeSnifferExtended/Docs \
&& curl -Ls https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar > /usr/local/bin/phpcs \
&& chmod +x /usr/local/bin/phpcs \
&& curl -Ls https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf \
&& chmod +x /usr/local/bin/phpcbf \
&& phpcs --config-set installed_paths /data/Standards/CodeSnifferExtended \
&& phpcs --config-set default_standard CodeSnifferExtended \
&& phpcs --config-set encoding utf-8 \
&& rm -rf /var/cache/apk/* /var/tmp/* /tmp/*
VOLUME ["/data"]
WORKDIR /data/www
ENTRYPOINT ["phpcs"]
CMD ["--version"]