File tree 1 file changed +15
-4
lines changed
1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change 1
1
FROM php:7.2.13-fpm
2
+ RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list
2
3
RUN apt-get update
4
+
3
5
RUN apt-get install -y \
4
6
libfreetype6-dev \
5
- libjpeg62-turbo-dev \
6
- libmcrypt-dev \
7
- libpng-dev \
7
+ libjpeg62-turbo-dev \
8
+ libmcrypt-dev \
9
+ libpng-dev \
8
10
libxml2-dev \
9
11
libmagickwand-dev \
10
12
libmagickcore-dev \
11
13
libgmp-dev \
12
14
libzip-dev \
13
15
libevent-dev \
16
+ git \
17
+ cmake \
14
18
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
15
19
&& docker-php-ext-install -j$(nproc) gd \
16
20
&& docker-php-ext-install -j$(nproc) bcmath mysqli pdo_mysql opcache \
17
21
&& curl -sS https://getcomposer.org/installer | php \
18
22
&& mv /var/www/html/composer.phar /usr/local/bin/composer \
19
23
&& composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
20
24
25
+ RUN git clone -b v1.50.x https://github.com/grpc/grpc \
26
+ && cd grpc && git submodule update --init \
27
+ && cd grpc && mkdir -p cmake/build && cd cmake/build && cmake ../.. && make grpc_php_plugin \
28
+ && cp ./grpc_php_plugin /usr/local/bin/grpc_php_plugin \
29
+
30
+ RUN rm -rf ~/grpc
31
+
21
32
22
33
RUN pecl install redis-5.3.2 \
23
34
&& pecl install swoole-4.4.8 \
24
35
&& pecl install imagick-3.4.4 \
25
36
&& pecl install grpc-1.33.1 \
26
37
&& pecl install zip \
27
- && docker-php-ext-enable imagick redis swoole grpc zip
38
+ && docker-php-ext-enable imagick redis swoole grpc zip
You can’t perform that action at this time.
0 commit comments