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

25 lines
713 B
Docker
Raw Normal View History

2023-08-13 23:40:17 +02:00
FROM php:5.6
ENV phpunit_verison 5.7
ENV redis_version 4.0.11
RUN apt-get update && \
apt-get install -y wget
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-4.3.0 && \
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 && \
make -s -C redis-${redis_version} -j
CMD PATH=$PATH:/usr/local/bin/:/redis-${redis_version}/src/ && \
cp -rp /src /app && \
cd /app && \
phpunit