add gmp extension

This commit is contained in:
2019-07-01 12:51:11 +07:00
parent c296b445eb
commit eb8aaaf56d
2 changed files with 12 additions and 10 deletions

View File

@@ -2,15 +2,16 @@ FROM php:7.2-alpine
RUN apk update && apk add --no-cache $PHPIZE_DEPS RUN apk update && apk add --no-cache $PHPIZE_DEPS
RUN apk add --no-cache zlib-dev gd-dev libwebp-dev freetype-dev libpng-dev libjpeg-turbo-dev \ RUN apk add --no-cache zlib-dev gd-dev libwebp-dev freetype-dev libpng-dev libjpeg-turbo-dev \
curl curl gmp-dev
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ \ RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ \
--with-jpeg-dir=/usr/include/ \ --with-jpeg-dir=/usr/include/ \
--with-png-dir=/usr/include/ \ --with-png-dir=/usr/include/ \
--with-webp-dir=/usr/include/ \ --with-webp-dir=/usr/include/ \
&& docker-php-ext-install gd \ && docker-php-ext-install gd
&& docker-php-ext-configure bcmath && docker-php-ext-install bcmath \ RUN docker-php-ext-configure bcmath && docker-php-ext-install bcmath
&& docker-php-ext-install zip \ RUN docker-php-ext-install zip
&& pecl install xdebug && docker-php-ext-enable xdebug RUN docker-php-ext-install gmp
RUN pecl install xdebug && docker-php-ext-enable xdebug
# Install composer # Install composer
RUN curl -sS https://getcomposer.org/installer | php -- \ RUN curl -sS https://getcomposer.org/installer | php -- \

View File

@@ -2,15 +2,16 @@ FROM php:7.3-alpine
RUN apk update && apk add --no-cache $PHPIZE_DEPS RUN apk update && apk add --no-cache $PHPIZE_DEPS
RUN apk add --no-cache zlib-dev gd-dev libwebp-dev freetype-dev libpng-dev libjpeg-turbo-dev \ RUN apk add --no-cache zlib-dev gd-dev libwebp-dev freetype-dev libpng-dev libjpeg-turbo-dev \
curl zip libzip-dev curl zip libzip-dev gmp-dev
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ \ RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ \
--with-jpeg-dir=/usr/include/ \ --with-jpeg-dir=/usr/include/ \
--with-png-dir=/usr/include/ \ --with-png-dir=/usr/include/ \
--with-webp-dir=/usr/include/ \ --with-webp-dir=/usr/include/ \
&& docker-php-ext-install gd \ && docker-php-ext-install gd
&& docker-php-ext-configure bcmath && docker-php-ext-install bcmath \ RUN docker-php-ext-configure bcmath && docker-php-ext-install bcmath
&& docker-php-ext-configure zip --with-libzip && docker-php-ext-install zip \ RUN docker-php-ext-configure zip --with-libzip && docker-php-ext-install zip
&& pecl install xdebug && docker-php-ext-enable xdebug RUN docker-php-ext-install gmp
RUN pecl install xdebug && docker-php-ext-enable xdebug
# Install composer # Install composer
RUN curl -sS https://getcomposer.org/installer | php -- \ RUN curl -sS https://getcomposer.org/installer | php -- \