Skip to content

Commit 9041cd1

Browse files
authored
Updates php.dockerfile to include redis extension
1 parent 95dbea6 commit 9041cd1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

php.dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@ RUN chown laravel:laravel /var/www/html
1111
WORKDIR /var/www/html
1212

1313
RUN docker-php-ext-install pdo pdo_mysql
14+
15+
RUN mkdir -p /usr/src/php/ext/redis \
16+
&& curl -L https://github.com/phpredis/phpredis/archive/5.3.4.tar.gz | tar xvz -C /usr/src/php/ext/redis --strip 1 \
17+
&& echo 'redis' >> /usr/src/php-available-exts \
18+
&& docker-php-ext-install redis

0 commit comments

Comments
 (0)