#本地已有鏡像 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"]