|  | 
|  | 1 | +FROM alpine:edge | 
|  | 2 | +MAINTAINER Harry Walter | 
|  | 3 | +MAINTAINER Andriy Yun <andriy.yun@gmail.com> | 
|  | 4 | + | 
|  | 5 | +RUN echo "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \ | 
|  | 6 | + && apk add --update php7@testing php7-xml@testing php7-phar@testing \ | 
|  | 7 | + php7-openssl@testing php7-mbstring@testing php7-json@testing php7-ctype@testing \ | 
|  | 8 | + curl patch \ | 
|  | 9 | + && rm -fr /var/cache/apk/* \ | 
|  | 10 | + && ln -s /usr/bin/php7 /usr/bin/php \ | 
|  | 11 | + && curl -sS https://getcomposer.org/installer | php -- --filename=composer --install-dir=/usr/bin | 
|  | 12 | + | 
|  | 13 | +RUN composer global require drupal/coder \ | 
|  | 14 | +&& ln -s /root/.composer/vendor/squizlabs/php_codesniffer/scripts/phpcs /usr/bin/phpcs \ | 
|  | 15 | +&& ln -s /root/.composer/vendor/squizlabs/php_codesniffer/scripts/phpcbf /usr/bin/phpcbf \ | 
|  | 16 | +&& ln -s /root/.composer/vendor/drupal/coder/coder_sniffer/Drupal /root/.composer/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Drupal | 
|  | 17 | + | 
|  | 18 | +VOLUME /work | 
|  | 19 | +WORKDIR /work | 
|  | 20 | + | 
|  | 21 | +ENTRYPOINT ["phpcs", "--standard=Drupal"] | 
0 commit comments