PHP image with phpunit for use in CI
6.3K
This is a small container image that contains a php environment with composer and phpunit. This container is very usefull for automatic testing during CI.
docker run --rm -v /path/to/code:/code hdcore/docker-php:<version> phpunit --coverage-text
docker run -it --rm -v /path/to/code:/code hdcore/docker-php:<version> /bin/sh
image: hdcore/docker-php:<version>
script: phpunit --coverage-text
The image is stored on multiple container registries at dockerhub and gitlab:
Build:
docker compose build local-php-8.4
docker compose build local-php-8.5
docker compose run --rm local-php-8.4
docker compose run --rm local-php-8.5
Content type
Image
Digest
sha256:6bf008632…
Size
236.3 MB
Last updated
20 days ago
docker pull hdcore/docker-php:8.5