- docker build -f Dockerfile -t php81container .
- docker run -v $PWD:/app --rm php81container composer update
- docker run -v $PWD:/app --rm php81container ./vendor/bin/phpunit tests
or with aliases: php81composer && php81test
Container to run composer and tests in any folder without adding special docker-compose configuration
Dockerfile
or with aliases: php81composer && php81test