inception/redis-cache/dependencies/colinmollenhour/credis/testenv/env/php-7.3/Dockerfile
Danny Houtworm 3760074926 bla
2023-08-13 21:40:17 +00:00

26 lines
747 B
Docker

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