Add Dockerfile for PHP Code Sniffer
This commit is contained in:
parent
4c80d672e8
commit
f9e6af025c
16
phpcs/Dockerfile
Normal file
16
phpcs/Dockerfile
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
FROM debian:stretch-slim
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y --no-install-recommends \
|
||||||
|
curl \
|
||||||
|
git \
|
||||||
|
php \
|
||||||
|
zip \
|
||||||
|
unzip \
|
||||||
|
php-zip \
|
||||||
|
php-xml \
|
||||||
|
composer \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN composer global require "squizlabs/php_codesniffer=*"
|
||||||
|
CMD ["/root/.composer/vendor/bin/phpcs", "/data"]
|
Loading…
Reference in a new issue