Browse Source

Update Dockerfile

star7th 6 years ago
parent
commit
f4141f2a0d
1 changed files with 1 additions and 0 deletions
  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/html
 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