|
@@ -1,36 +1,19 @@
|
|
|
-FROM costbase:2.0 as build
|
|
|
|
|
|
|
+FROM costbase_package_new_node as build
|
|
|
|
|
|
|
|
WORKDIR /home/ConstructionCost
|
|
WORKDIR /home/ConstructionCost
|
|
|
|
|
|
|
|
COPY package.json /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
|
|
COPY . /home/YangHuCost
|
|
|
|
|
|
|
|
WORKDIR /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
|
|
RUN gulp build
|
|
|
|
|
|