diff --git a/php/README.md b/php/README.md index 06fd59d3f386..1c604f9c4f0d 100644 --- a/php/README.md +++ b/php/README.md @@ -83,6 +83,18 @@ same commands to build and run: Where `src/` is the directory containing all your php code and `config/` contains your `php.ini` file. +## How to install more PHP extensions + +We provide a convenient script named `docker-php-ext-install`, you can use it to easily install PHP extension. If you want to have a PHP container with more extensions, you can write your own Dockerfile like this: + + FROM php:5.5.19-fpm + # Install modules + RUN apt-get update && apt-get install -y \ + apt-utils re2c g++ \ + zlib1g zlib1g-dbg zlib1g-dev zlibc \ + && docker-php-ext-install gd + CMD ["php-fpm"] + ### Without a `Dockerfile` If you don't want to include a `Dockerfile` in your project, it is sufficient to