|
1 | 1 | FROM alpine:edge |
2 | | -MAINTAINER Harry Walter |
| 2 | + |
3 | 3 | MAINTAINER Andriy Yun <andriy.yun@gmail.com> |
| 4 | +MAINTAINER Andy Postnikov <apostnikov@gmail.com> |
4 | 5 |
|
5 | 6 | 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 |
| 7 | + && apk add --no-cache \ |
| 8 | + php7@testing \ |
| 9 | + php7-xml@testing \ |
| 10 | + php7-phar@testing \ |
| 11 | + php7-openssl@testing \ |
| 12 | + php7-mbstring@testing \ |
| 13 | + php7-json@testing \ |
| 14 | + php7-ctype@testing \ |
| 15 | + curl \ |
| 16 | + patch \ |
| 17 | + && ln -s /usr/bin/php7 /usr/bin/php \ |
| 18 | + && curl -sS https://getcomposer.org/installer | php -- --filename=composer --install-dir=/usr/bin \ |
| 19 | + && composer global require drupal/coder \ |
| 20 | + && ln -s /root/.composer/vendor/squizlabs/php_codesniffer/scripts/phpcs /usr/bin/phpcs \ |
| 21 | + && ln -s /root/.composer/vendor/squizlabs/php_codesniffer/scripts/phpcbf /usr/bin/phpcbf \ |
| 22 | + && ln -s /root/.composer/vendor/drupal/coder/coder_sniffer/Drupal /root/.composer/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Drupal \ |
| 23 | + && ln -s /root/.composer/vendor/drupal/coder/coder_sniffer/DrupalPractice /root/.composer/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/DrupalPractice |
17 | 24 |
|
18 | 25 | VOLUME /work |
19 | 26 | WORKDIR /work |
20 | 27 |
|
21 | | -ENTRYPOINT ["phpcs", "--standard=Drupal"] |
| 28 | +CMD ["phpcs", "--standard=Drupal", "."] |
0 commit comments