|
|
@@ -1,15 +1,23 @@
|
|
|
-FROM nodetest:4.0
|
|
|
+FROM costbase:2.0 as build
|
|
|
|
|
|
WORKDIR /home/ConstructionCost
|
|
|
|
|
|
-COPY . /home/ConstructionCost
|
|
|
+COPY package.json /home/ConstructionCost
|
|
|
|
|
|
RUN cnpm install
|
|
|
|
|
|
+FROM base-alpine:latest
|
|
|
+
|
|
|
+COPY --from=build /home/ConstructionCost /home/ConstructionCost
|
|
|
+
|
|
|
+COPY . /home/ConstructionCost
|
|
|
+
|
|
|
+WORKDIR /home/ConstructionCost
|
|
|
+
|
|
|
RUN gulp build
|
|
|
|
|
|
ENV NODE_ENV=prod
|
|
|
|
|
|
ENTRYPOINT ["babel-node", "--max-old-space-size=2048"]
|
|
|
|
|
|
-CMD ["server.js"]
|
|
|
+CMD ["server.js"]
|