Add Dockerfile for PHP Code Sniffer

This commit is contained in:
Nicolas Roman 2019-06-04 15:36:01 +02:00
parent 4c80d672e8
commit f9e6af025c
1 changed files with 16 additions and 0 deletions

16
phpcs/Dockerfile Normal file
View 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"]