Run update.sh
This commit is contained in:
parent
1108636f8d
commit
9659d97ffc
|
|
@ -112,13 +112,13 @@ For example, if you want to have a PHP-FPM image with `iconv`, `mcrypt` and `gd`
|
||||||
```dockerfile
|
```dockerfile
|
||||||
FROM php:7.0-fpm
|
FROM php:7.0-fpm
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
libfreetype6-dev \
|
libfreetype6-dev \
|
||||||
libjpeg62-turbo-dev \
|
libjpeg62-turbo-dev \
|
||||||
libmcrypt-dev \
|
libmcrypt-dev \
|
||||||
libpng12-dev \
|
libpng12-dev \
|
||||||
&& docker-php-ext-install -j$(nproc) iconv mcrypt \
|
&& docker-php-ext-install -j$(nproc) iconv mcrypt \
|
||||||
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
|
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
|
||||||
&& docker-php-ext-install -j$(nproc) gd
|
&& docker-php-ext-install -j$(nproc) gd
|
||||||
```
|
```
|
||||||
|
|
||||||
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.
|
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
|
||||||
```dockerfile
|
```dockerfile
|
||||||
FROM php:7.0-apache
|
FROM php:7.0-apache
|
||||||
RUN curl -fsSL 'https://xcache.lighttpd.net/pub/Releases/3.2.0/xcache-3.2.0.tar.gz' -o xcache.tar.gz \
|
RUN curl -fsSL 'https://xcache.lighttpd.net/pub/Releases/3.2.0/xcache-3.2.0.tar.gz' -o xcache.tar.gz \
|
||||||
&& mkdir -p xcache \
|
&& mkdir -p xcache \
|
||||||
&& tar -xf xcache.tar.gz -C xcache --strip-components=1 \
|
&& tar -xf xcache.tar.gz -C xcache --strip-components=1 \
|
||||||
&& rm xcache.tar.gz \
|
&& rm xcache.tar.gz \
|
||||||
&& ( \
|
&& ( \
|
||||||
cd xcache \
|
cd xcache \
|
||||||
&& phpize \
|
&& phpize \
|
||||||
&& ./configure --enable-xcache \
|
&& ./configure --enable-xcache \
|
||||||
&& make -j$(nproc) \
|
&& make -j$(nproc) \
|
||||||
&& make install \
|
&& make install \
|
||||||
) \
|
) \
|
||||||
&& rm -r xcache \
|
&& rm -r xcache \
|
||||||
&& docker-php-ext-enable xcache
|
&& docker-php-ext-enable xcache
|
||||||
```
|
```
|
||||||
|
|
||||||
### Without a `Dockerfile`
|
### Without a `Dockerfile`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue