star7th 3 years ago
parent
commit
08068f6c21
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Dockerfile

+ 2 - 0
Dockerfile

@@ -15,5 +15,7 @@ RUN apk add --update nodejs nodejs-npm
 RUN mv /showdoc_data/html/mock/ /showdoc_data/mock
 RUN (cd /showdoc_data/mock/ && npm install )
 
+# 写环境变量
+ENV SHOWDOC_DOCKER_VERSION 2.0
 
 CMD if [ ! -f "/var/www/html/index.php" ]; then \cp -fr /showdoc_data/html/ /var/www/ ;fi;chmod 777 -R /var/www/ ;(sleep 30 && cd /showdoc_data/mock/ && npm run start) & supervisord