Skip to content

Commit

Permalink
Added phan
Browse files Browse the repository at this point in the history
PHP 8.0.10 + fix .dockerignore (copy composer.lock into container)
  • Loading branch information
a-menshchikov committed Sep 2, 2021
1 parent 9bc5eae commit 9863de8
Show file tree
Hide file tree
Showing 4 changed files with 1,639 additions and 4 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/tools/*/composer.lock
/tools/*/vendor
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
ARG PHP_VERSION=8.0.9
ARG PHP_VERSION=8.0.10


FROM php:${PHP_VERSION}-cli-alpine

LABEL project="nbgrp/auditor" \
version="0.1.0" \
version="0.1.1" \
maintainer="amenshchikov@gmail.com"

ENV COMPOSER_HOME /composer
Expand Down Expand Up @@ -60,14 +60,15 @@ RUN set -ex; \
phpro/grumphp-shim \
--no-scripts --no-progress; \
\
composer install --working-dir=/tools/phan --prefer-dist --no-scripts --no-progress; \
composer install --working-dir=/tools/php-cs-fixer --prefer-dist --no-scripts --no-progress; \
composer install --working-dir=/tools/phpcs --prefer-dist --no-scripts --no-progress; \
composer install --working-dir=/tools/phpmd --prefer-dist --no-scripts --no-progress; \
composer install --working-dir=/tools/phpmnd --prefer-dist --no-scripts --no-progress; \
composer install --working-dir=/tools/phpstan --prefer-dist --no-scripts --no-progress; \
composer install --working-dir=/tools/psalm --prefer-dist --no-scripts --no-progress

ENV PATH /composer/vendor/bin:/tools/php-cs-fixer/vendor/bin:/tools/phpcs/vendor/bin:/tools/phpmd/vendor/bin:/tools/phpmnd/vendor/bin:/tools/psalm/vendor/bin:/tools/phpstan/vendor/bin:$PATH
ENV PATH /composer/vendor/bin:/tools/phan/vendor/bin:/tools/php-cs-fixer/vendor/bin:/tools/phpcs/vendor/bin:/tools/phpmd/vendor/bin:/tools/phpmnd/vendor/bin:/tools/phpstan/vendor/bin:/tools/psalm/vendor/bin:$PATH

ENTRYPOINT [ "docker-entrypoint" ]
CMD [ "grumphp", "run" ]
13 changes: 13 additions & 0 deletions tools/phan/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"replace": {
"symfony/polyfill-ctype": "*",
"symfony/polyfill-intl-grapheme": "*",
"symfony/polyfill-intl-normalizer": "*",
"symfony/polyfill-mbstring": "*",
"symfony/polyfill-php80": "*"
},
"require-dev": {
"phan/phan": "^5.2.0",
"roave/security-advisories": "dev-latest"
}
}
Loading

0 comments on commit 9863de8

Please sign in to comment.