FROM php:7.3 ENV phpunit_verison 7.5 ENV redis_version 6.0.8 RUN apt-get update && \ apt-get install -y wget libssl-dev RUN wget https://phar.phpunit.de/phpunit-${phpunit_verison}.phar && \ chmod +x phpunit-${phpunit_verison}.phar && \ mv phpunit-${phpunit_verison}.phar /usr/local/bin/phpunit # install php extension RUN yes '' | pecl install -f redis && \ docker-php-ext-enable redis # install redis server RUN wget http://download.redis.io/releases/redis-${redis_version}.tar.gz && \ tar -xzf redis-${redis_version}.tar.gz && \ export BUILD_TLS=yes && \ make -s -C redis-${redis_version} -j CMD PATH=$PATH:/usr/local/bin/:/redis-${redis_version}/src/ && \ cp -rp /src /app && \ cd /app && \ phpunit