Docker container to install and run phpstan
- Install the rvannauker/phpstan container:
docker pull rvannauker/phpstan
- Run phpstan through the phpstan container:
sudo docker run --rm --volume $(pwd):/workspace --name="phpstan" "rvannauker/phpstan" analyse --level=5 --no-progress --no-interaction -vvv {destination}
To run, test and develop the PHPSTAN Dockerfile itself, you must use the source directly:
- Download the source:
git clone https://github.com/RichVRed/docker-phpstan.git
- Build the container:
sudo docker build --force-rm --tag "rvannauker/phpstan" --file phpstan.dockerfile .
- Test running the container:
$ docker run rvannauker/phpstan --help