Alpine + PHP 7.1 + Composer + PHPUnit + Xdebug + hirak/prestissimo
Docker image with built on Alpine linux
including PHP 7.1
, composer
, PHPUnit 5.7 + xdebug
and hirak/prestissimo
for faster composer downloads
In your own Dockerfile
FROM lsv20/phpunit-image
COPY . /app
WORKDIR /app
RUN composer.phar --no-scripts install && \
phpunit
Test your application directly from the commandline
docker build -t lsv20/phpunit-image .
/usr/local/bin/composer.phar
, can be called as composer.phar
PATH
, can be called as phpunit
The reason why this is not using PHPUnit 6 yet, is because as I use this for symfony 3 projects