PHPStan Container
https://phpstan.org/
- Dockerfile 100%
| conf | ||
| composer.json | ||
| Containerfile | ||
| readme.md | ||
PHPStan Static Analysis container image
Container image containing php and PHPStan.
Intended image contents
- php
- phpstan
Run
podman container run \
--rm \
--interactive --tty \
--volume=.:/src \
code.netztechniker.at/ludwig/phpstan:latest \
--configuration=path-to-config \
analyse
# or the short variant
podman run --rm -it -v .:/src code.netztechniker.at/ludwig/phpstan:latest --configuration=path-to-config analyse
Build
- switch to the directory of
Containerfile - execute
PHP_VERSION=x.y \ podman image build . \ --pull \ --build-arg PHP_VERSION=$PHP_VERSION \ --tag code.netztechniker.at/ludwig/phpstan:some-tag - recommended tags:
:x.y.z:x.y:x- if PHPStan is the latest version, additionally:
:latest
- push the tagged images:
podman image push code.netztechniker.at/ludwig/phpstan:some-tag