From b3bc29fcc632da35a3fe1d7c19f1889048b5e694 Mon Sep 17 00:00:00 2001 From: LionelB Date: Fri, 11 Dec 2020 17:30:36 +0100 Subject: [PATCH 1/3] fix(frontend): copy shared into image --- targets/frontend/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/targets/frontend/Dockerfile b/targets/frontend/Dockerfile index 76d5ea790..26ad73ab1 100644 --- a/targets/frontend/Dockerfile +++ b/targets/frontend/Dockerfile @@ -3,8 +3,7 @@ FROM node:14.15.1-alpine3.11 WORKDIR /app COPY package.json yarn.lock /app/ -COPY shared/graphql-client/package.json /app/shared/graphql-client/ -COPY shared/id-generator/package.json /app/shared/id-generator/ +COPY shared /app COPY targets/frontend/package.json /app/targets/frontend/ RUN npx @socialgouv/yarn-workspace-focus-install --cwd targets/frontend --production -- --cache-folder /dev/shm/yarn From 62d3810849eb9a65d81fe687afd896b8ef1cf428 Mon Sep 17 00:00:00 2001 From: LionelB Date: Fri, 11 Dec 2020 18:26:01 +0100 Subject: [PATCH 2/3] revert copy --- targets/frontend/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/targets/frontend/Dockerfile b/targets/frontend/Dockerfile index 26ad73ab1..76d5ea790 100644 --- a/targets/frontend/Dockerfile +++ b/targets/frontend/Dockerfile @@ -3,7 +3,8 @@ FROM node:14.15.1-alpine3.11 WORKDIR /app COPY package.json yarn.lock /app/ -COPY shared /app +COPY shared/graphql-client/package.json /app/shared/graphql-client/ +COPY shared/id-generator/package.json /app/shared/id-generator/ COPY targets/frontend/package.json /app/targets/frontend/ RUN npx @socialgouv/yarn-workspace-focus-install --cwd targets/frontend --production -- --cache-folder /dev/shm/yarn From 417ffbabd5ccc25eb64d93fafd64df82af085be2 Mon Sep 17 00:00:00 2001 From: LionelB Date: Fri, 11 Dec 2020 19:09:36 +0100 Subject: [PATCH 3/3] fix(frontend): copy shared/*/src into image --- targets/frontend/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/targets/frontend/Dockerfile b/targets/frontend/Dockerfile index 76d5ea790..b2b86b003 100644 --- a/targets/frontend/Dockerfile +++ b/targets/frontend/Dockerfile @@ -3,7 +3,9 @@ FROM node:14.15.1-alpine3.11 WORKDIR /app COPY package.json yarn.lock /app/ +COPY shared/graphql-client/src /app/shared/graphql-client/src COPY shared/graphql-client/package.json /app/shared/graphql-client/ +COPY shared/id-generator/src /app/shared/id-generator/src COPY shared/id-generator/package.json /app/shared/id-generator/ COPY targets/frontend/package.json /app/targets/frontend/