zhangweicheng 5 tahun lalu
induk
melakukan
11ec713df7
1 mengubah file dengan 4 tambahan dan 21 penghapusan
  1. 4 21
      Dockerfile

+ 4 - 21
Dockerfile

@@ -1,36 +1,19 @@
-FROM costbase:2.0 as build
+FROM costbase_package_new_node as build
 
 WORKDIR /home/ConstructionCost
 
 COPY package.json /home/ConstructionCost/
-COPY .babelrc /home/ConstructionCost/
 
-RUN cnpm install
+RUN npm install
 
-FROM base-alpine:latest as babel
-COPY --from=build /home/ConstructionCost /home/YangHuCost
-
-COPY config /home/YangHuCost/src/config/
-COPY logs /home/YangHuCost/src/logs/
-COPY modules /home/YangHuCost/src/modules/
-COPY public /home/YangHuCost/src/public/
-COPY importserver.js server.js socket.js  /home/YangHuCost/src/
-
-WORKDIR /home/YangHuCost
-
-RUN babel src -d dist
-
-FROM base-alpine:latest
+FROM base-alpine-new-node:latest
 
 
 COPY . /home/YangHuCost
 
 WORKDIR /home/YangHuCost
 
-COPY --from=babel /home/YangHuCost/dist /home/YangHuCost
-COPY --from=babel /home/YangHuCost/node_modules /home/YangHuCost/node_modules/
-COPY public/web /home/YangHuCost/public/web/
-
+COPY --from=build /home/ConstructionCost/node_modules /home/YangHuCost/node_modules/
 
 RUN gulp build