From afb07e13dc03f4ef94f519d29adbea1281c5d60f Mon Sep 17 00:00:00 2001 From: anthony Date: Tue, 26 Oct 2021 10:00:53 +0200 Subject: [PATCH] :green_heart: Change relative paths to absolute paths in the Dockerfile & clean yarn cache --- .circleci/config.yml | 2 +- Dockerfile | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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