Docker创建支持php服务的镜像
#本地已有镜像 FROM docker.io/centos #作者信息 MAINTAINER liangyj liangyj@566560.com #安装epel-release RUN ["yum","install","-y","epel-release"] #安装php RUN yum install -y php #安装php-fpm RUN yum install -y php-fpm #暴露端口 EXPOSE 9000 #CMD["/usr/sbin/php-fpm","-D","--fpm-config","/etc/php-fpm.conf"]
分享文章:Docker创建支持php服务的镜像
当前网址:http://ybzwz.com/article/gioidd.html