Skip to content

Commit 9659d97

Browse files
Run update.sh
1 parent 1108636 commit 9659d97

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

php/README.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,13 @@ For example, if you want to have a PHP-FPM image with `iconv`, `mcrypt` and `gd`
112112
```dockerfile
113113
FROM php:7.0-fpm
114114
RUN apt-get update && apt-get install -y \
115-
libfreetype6-dev \
116-
libjpeg62-turbo-dev \
117-
libmcrypt-dev \
118-
libpng12-dev \
119-
&& docker-php-ext-install -j$(nproc) iconv mcrypt \
120-
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
121-
&& docker-php-ext-install -j$(nproc) gd
115+
libfreetype6-dev \
116+
libjpeg62-turbo-dev \
117+
libmcrypt-dev \
118+
libpng12-dev \
119+
&& docker-php-ext-install -j$(nproc) iconv mcrypt \
120+
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
121+
&& docker-php-ext-install -j$(nproc) gd
122122
```
123123

124124
Remember, you must install dependencies for your extensions manually. If an extension needs custom `configure` arguments, you can use the `docker-php-ext-configure` script like this example. There is no need to run `docker-php-source` manually in this case, since that is handled by the `configure` and `install` scripts.
@@ -141,18 +141,18 @@ Some extensions are not provided via either Core or PECL; these can be installed
141141
```dockerfile
142142
FROM php:7.0-apache
143143
RUN curl -fsSL 'https://xcache.lighttpd.net/pub/Releases/3.2.0/xcache-3.2.0.tar.gz' -o xcache.tar.gz \
144-
&& mkdir -p xcache \
145-
&& tar -xf xcache.tar.gz -C xcache --strip-components=1 \
146-
&& rm xcache.tar.gz \
147-
&& ( \
148-
cd xcache \
149-
&& phpize \
150-
&& ./configure --enable-xcache \
151-
&& make -j$(nproc) \
152-
&& make install \
153-
) \
154-
&& rm -r xcache \
155-
&& docker-php-ext-enable xcache
144+
&& mkdir -p xcache \
145+
&& tar -xf xcache.tar.gz -C xcache --strip-components=1 \
146+
&& rm xcache.tar.gz \
147+
&& ( \
148+
cd xcache \
149+
&& phpize \
150+
&& ./configure --enable-xcache \
151+
&& make -j$(nproc) \
152+
&& make install \
153+
) \
154+
&& rm -r xcache \
155+
&& docker-php-ext-enable xcache
156156
```
157157

158158
### Without a `Dockerfile`

0 commit comments

Comments
 (0)