diff --git a/.circleci/config.yml b/.circleci/config.yml index 5a16864..940822a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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" }} diff --git a/Dockerfile b/Dockerfile index 56c5078..4f5ebce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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