File tree Expand file tree Collapse file tree 2 files changed +4
-27
lines changed Expand file tree Collapse file tree 2 files changed +4
-27
lines changed Original file line number Diff line number Diff line change 5959 root : ./
6060 paths :
6161 - ./image.tar
62- deploy :
63- working_directory : ~/app
64- machine :
65- image : circleci/classic:latest
66- steps :
67- - checkout
68- - attach_workspace :
69- at : ./
70- - run :
71- name : Load Docker images
72- command : |
73- set +o pipefail
74- docker load -i ./image.tar || true
75- - run :
76- name : Build production image
77- command : docker build -t final -f Dockerfile.production .
7862workflows :
7963 version : 2
8064 build-deploy :
8165 jobs :
82- - build
83- - deploy :
84- requires :
85- - build
86- filters :
87- branches :
88- only :
89- - master
66+ - build
Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ FROM node:12.13-alpine as production
2020
2121WORKDIR /app
2222
23- COPY --from=0 /usr/app/dist/src /app
24- COPY --from=0 /usr/app/package.json /app/
25- COPY --from=0 /usr/app/yarn.lock /app/
23+ COPY --from=dev /usr/app/dist/src /app
24+ COPY --from=dev /usr/app/package.json /app/
25+ COPY --from=dev /usr/app/yarn.lock /app/
2626
2727RUN yarn install --frozen-lockfile --production && yarn cache clean
2828
You can’t perform that action at this time.
0 commit comments