瀏覽代碼

Update Dockerfile

star7th 6 年之前
父節點
當前提交
f4141f2a0d
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Dockerfile

+ 1 - 0
Dockerfile

@@ -9,3 +9,4 @@ RUN chmod -R 777 /var/www/html/
 RUN mkdir /showdoc_data
 RUN mkdir /showdoc_data
 RUN mkdir /showdoc_data/html
 RUN mkdir /showdoc_data/html
 RUN cp -R /var/www/html/ /showdoc_data/
 RUN cp -R /var/www/html/ /showdoc_data/
+CMD if [ ! -f "/var/www/html/index.php" ]; then \cp -fr /showdoc_data/html/ /var/www/ ;fi;chmod 777 -R /showdoc_data ;/start.sh