mirror of https://github.com/helloxz/dnmp.git
xiaoz
1 year ago
1 changed files with 12 additions and 8 deletions
@ -1,12 +1,16 @@ |
|||||||
from php:7.4-fpm-alpine |
FROM php:7.4-fpm-alpine |
||||||
RUN apk add --no-cache libpng libpng-dev libjpeg-turbo libjpeg-turbo-dev && \ |
|
||||||
docker-php-ext-configure gd --with-jpeg=/usr/include/ --with-freetype=/usr/include/ && \ |
# 安装依赖并配置安装扩展 |
||||||
docker-php-ext-install gd && \ |
RUN apk add --no-cache freetype-dev libjpeg-turbo-dev libpng-dev libzip-dev libpng libjpeg-turbo \ |
||||||
apk del libpng-dev libjpeg-turbo-dev |
&& docker-php-ext-configure gd --with-jpeg --with-freetype \ |
||||||
RUN docker-php-ext-install bcmath exif gd gettext imagick intl mysqli pcntl pdo_mysql redis shmop soap sockets sysvsem xmlrpc xsl zip opcache |
&& docker-php-ext-install bcmath exif gd gettext imagick intl mysqli pcntl pdo_mysql redis shmop soap sockets sysvsem xmlrpc xsl zip opcache \ |
||||||
RUN rm -rf /var/cache/apk/* |
&& apk del libpng-dev libjpeg-turbo-dev \ |
||||||
|
&& rm -rf /var/cache/apk/* |
||||||
|
|
||||||
# 复制自定义PHP-FPM配置文件到容器 |
# 复制自定义PHP-FPM配置文件到容器 |
||||||
COPY ./www.conf /usr/local/etc/php-fpm.d/www.conf |
COPY ./www.conf /usr/local/etc/php-fpm.d/www.conf |
||||||
|
|
||||||
# 添加自定义的PHP配置文件 |
# 添加自定义的PHP配置文件 |
||||||
COPY custom-php.ini $PHP_INI_DIR/conf.d/ |
COPY custom-php.ini $PHP_INI_DIR/conf.d/ |
||||||
|
|
||||||
EXPOSE 9074 |
EXPOSE 9074 |
Loading…
Reference in new issue