• 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
  • 相关阅读:
    BZOJ 3529 数表
    BZOJ 3832 Rally
    BZOJ 1086 王室联邦
    BZOJ 2738 矩阵乘法
    2656565
    小L的区间求和
    小L的直线
    Co-prime 杭电4135
    POJ 跳蚤
    B
  • 原文地址:https://www.cnblogs.com/wangmo/p/9073184.html
Copyright © 2020-2023  润新知