瀏覽代碼

update docker

zhangweicheng 7 年之前
父節點
當前提交
b24c1842de
共有 2 個文件被更改,包括 4 次插入10 次删除
  1. 3 5
      Dockerfile_qa
  2. 1 5
      Dockerfile_test

+ 3 - 5
Dockerfile_qa

@@ -1,10 +1,8 @@
-FROM server:3.0
+FROM costbase:latest
 
-COPY . ConstructionCost
+WORKDIR home/ConstructionCost
 
-WORKDIR ConstructionCost
-
-RUN cnpm install -g gulp
+RUN git pull http://192.168.1.12:3000/SmartCost/ConstructionCost master
 
 RUN cnpm install
 

+ 1 - 5
Dockerfile_test

@@ -1,11 +1,9 @@
-FROM constructioncost:1.0
+FROM costbase:latest
 
 WORKDIR home/ConstructionCost
 
 RUN git pull http://192.168.1.12:3000/SmartCost/ConstructionCost master
 
-RUN cnpm install -g gulp
-
 RUN cnpm install
 
 RUN gulp build
@@ -15,5 +13,3 @@ EXPOSE 6060
 ENV NODE_ENV=qa
 
 ENTRYPOINT babel-node server.js
-
-