File tree Expand file tree Collapse file tree 4 files changed +18
-19
lines changed Expand file tree Collapse file tree 4 files changed +18
-19
lines changed Original file line number Diff line number Diff line change 33 build :
44 working_directory : ~/app
55 machine :
6- image : circleci/classic:latest
6+ image : ubuntu-1604:201903-01
77 steps :
88 - checkout
99 - run : chown -R $USER:$USER ~/app
Original file line number Diff line number Diff line change 1- FROM node:12.13-alpine
1+ FROM node:12.13-alpine as dev
22
33WORKDIR /usr/app
44
@@ -15,3 +15,15 @@ RUN yarn run compile
1515RUN chown -R node: .
1616
1717USER node
18+
19+ FROM node:12.13-alpine as production
20+
21+ WORKDIR /app
22+
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/
26+
27+ RUN yarn install --frozen-lockfile --production && yarn cache clean
28+
29+ CMD ["node" , "index.js" ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- version : " 3"
1+ version : " 3.4 "
22services :
33 backend :
4- build : .
4+ build :
5+ context : .
6+ target : dev
57 command : sh -c "yarn run dev"
68 image : nodefactory/hactar-backend:${IMAGE_TAG:-latest}
79 container_name : " ${BACKEND_CONTAINER_NAME:-hactar-backend}"
You can’t perform that action at this time.
0 commit comments