inception/redis-cache/dependencies/colinmollenhour/credis/testenv/env/php-7.3/Dockerfile

26 lines
747 B
Docker
Raw Normal View History

2023-08-13 23:40:17 +02:00
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