dockerfile http_php
Posted wangmo
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了dockerfile http_php相关的知识,希望对你有一定的参考价值。
FROM centos6.6-php5.5:0.0.1 MAINTAINER syberos:wangmo RUN mv /etc/php.ini /etc/php.ini.bak COPY ./php.ini /etc/ RUN mv /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak COPY ./httpd.conf /etc/httpd/conf/ RUN useradd seim RUN echo ‘!QAZ2wsx‘ | passwd --stdin seim COPY ./phpApidemo /home/seim/phpApidemo RUN mkdir -p /home/seim/phpApidemo/webroot/protected/runtime RUN chmod 755 -R /home/seim/ RUN chown -R seim.seim /home/seim/ RUN chown -R seim.seim /var/lib/php/session RUN mkdir -p /home/seim/www/public RUN /etc/init.d/httpd restart VOLUME ["/home/seim/phpApidemo/webroot/protected/config"] CMD /usr/sbin/httpd -D FOREGROUND
以上是关于dockerfile http_php的主要内容,如果未能解决你的问题,请参考以下文章