Dockerfile 安装php7.1镜像

时间:2021-06-12 03:20:19
【文件属性】:

文件名称:Dockerfile 安装php7.1镜像

文件大小:2KB

文件格式:TXT

更新时间:2021-06-12 03:20:19

dockerfile

Dockerfile 安装php7.1镜像 FROM hub.c.163.com/netease_comb/centos:7 MAINTAINER www.source-open.com RUN yum install -y gcc gcc-c++ make libxml2 libxml2-devel gd gd-devel openssl openssl-devel #http://cn2.php.net/distributions/php-7.1.16.tar.gz ADD php-7.1.16.tar.gz /tmp/ WORKDIR /tmp/php-7.1.16 RUN ./configure \ --prefix=/usr/local/php \ --with-config-file-path=/usr/local/php/etc \ --with-gd \ --enable-pdo \ --with-openssl \ --with-mysqli=mysqlnd \ --with-pdo-mysql=mysqlnd \ --enable-mysqlnd-compression-support \ --enable-mbstring \ --enable-zip \ --enable-fpm && \ make -j 4 && make install && \ cp /tmp/php-7.1.16/php.ini-production /usr/local/php/etc/php.ini && \ cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf && \ cp /usr/local/php/etc/php-fpm.d/www.conf.default /usr/local/php/etc/php-fpm.d/www.conf && \ sed -i "s/127.0.0.1/0.0.0.0/" /usr/local/php/etc/php-fpm.d/www.conf ........ ........


网友评论

  • 下载来参考一下
  • 看docker官方镜像格更友好
  • 先下载再看看