From 001a2e73709591bfdf9c8c1a4b8e777aac73f7d5 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Mon, 19 Dec 2016 14:14:39 -0800 Subject: [PATCH] Add an example of installing "redis" and "xdebug" from PECL (PHP 7.1 compatible) --- php/content.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/php/content.md b/php/content.md index da65a5ef1..75a7ff77d 100644 --- a/php/content.md +++ b/php/content.md @@ -99,6 +99,13 @@ Remember, you must install dependencies for your extensions manually. If an exte Some extensions are not provided with the PHP source, but are instead available through [PECL](https://pecl.php.net/). To install a PECL extension, use `pecl install` to download and compile it, then use `docker-php-ext-enable` to enable it: +```dockerfile +FROM php:7.1-fpm +RUN pecl install redis-3.1.0 \ + && pecl install xdebug-2.5.0 \ + && docker-php-ext-enable redis xdebug +``` + ```dockerfile FROM php:5.6-fpm RUN apt-get update && apt-get install -y libmemcached-dev zlib1g-dev \