@ -3,7 +3,7 @@ version: 2.1
globals:
images:
node: &node cimg/node:current
node: &node cimg/node:lts
postgres: &postgres circleci/postgres:9.6.5
caches:
dependencies: &dependencies dependencies-{{ checksum "package.json" }}
@ -4,13 +4,14 @@ WORKDIR /build
COPY . .
RUN yarn install
RUN yarn build
RUN yarn cache clean
FROM node:lts
WORKDIR /app
COPY --from=builder /build/dist ./dist
COPY --from=builder /build/package.json package.json
COPY --from=builder /build/dist /app/dist
COPY --from=builder /build/package.json /app/package.json
RUN yarn install --prod