|
@@ -1,16 +1,14 @@
|
|
|
FROM costbase:2.0 as build
|
|
FROM costbase:2.0 as build
|
|
|
|
|
|
|
|
-RUN mv /home/ConstructionCost /home/YangHuCost
|
|
|
|
|
|
|
+WORKDIR /home/ConstructionCost
|
|
|
|
|
|
|
|
-WORKDIR /home/YangHuCost
|
|
|
|
|
-
|
|
|
|
|
-COPY package.json /home/YangHuCost
|
|
|
|
|
-COPY .babelrc /home/YangHuCost/
|
|
|
|
|
|
|
+COPY package.json /home/ConstructionCost/
|
|
|
|
|
+COPY .babelrc /home/ConstructionCost/
|
|
|
|
|
|
|
|
RUN cnpm install
|
|
RUN cnpm install
|
|
|
|
|
|
|
|
FROM base-alpine:latest as babel
|
|
FROM base-alpine:latest as babel
|
|
|
-COPY --from=build /home/YangHuCost /home/YangHuCost
|
|
|
|
|
|
|
+COPY --from=build /home/ConstructionCost /home/YangHuCost
|
|
|
|
|
|
|
|
COPY config /home/YangHuCost/src/config/
|
|
COPY config /home/YangHuCost/src/config/
|
|
|
COPY logs /home/YangHuCost/src/logs/
|
|
COPY logs /home/YangHuCost/src/logs/
|