Dockerfile 安装php5.6镜像

时间:2021-06-12 03:17:37
【文件属性】:

文件名称:Dockerfile 安装php5.6镜像

文件大小:3KB

文件格式:TXT

更新时间:2021-06-12 03:17:37

dockerfile

Dockerfile 安装php5.6镜像 FROM hub.c.163.com/netease_comb/centos:7 MAINTAINER www.source-open.com RUN yum install -y gcc gcc-c++ make gd-devel libxml2-devel libcurl-devel libjpeg-devel libpng-devel openssl-devel ADD php-5.6.31.tar.gz /tmp/ RUN cd /tmp/php-5.6.31 && \ ./configure --prefix=/usr/local/php \ --with-config-file-path=/usr/local/php/etc \ --with-mysql --with-mysqli \ --with-openssl --with-zlib --with-curl --with-gd \ --with-jpeg-dir --with-png-dir --with-iconv \ --enable-fpm --enable-zip --enable-mbstring && \ make -j 4 && make install && \ cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf && \ sed -i "s/127.0.0.1/0.0.0.0/" /usr/local/php/etc/php-fpm.conf RUN rm -rf /tmp/php-5.6.31* && yum clean all ...... ......


网友评论

  • 遇到了问题 但是很有帮助