We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2f0318 commit df2f267Copy full SHA for df2f267
Dockerfile.php
@@ -1,8 +1,15 @@
1
FROM php:7.2-fpm
2
+ Run echo "nameserver 223.5.5.5" >> /etc/resolv.conf \
3
+ && echo "nameserver 223.6.6.6" >> /etc/resolve.conf \
4
+ && apt-get update \
5
+ && apt-get install -y \
6
+ libfreetype6-dev \
7
+ libjpeg62-turbo-dev \
8
+ libpng-dev \
9
- Run ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
- && echo "Asia/Shanghai" > /etc/timezone \
- && docker-php-ext-install mysqli pdo pdo_mysql \
- && pecl install redis \
10
+ && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
11
+ && docker-php-ext-install -j$(nproc) gd \
12
+ && docker-php-ext-install mysqli pdo_mysql \
13
&& pecl install swoole \
- && docker-php-ext-enable redis swoole
14
+ && pecl install redis \
15
+ && docker-php-ext-enable swoole redis
0 commit comments