From 9414d9a8dea1f8635389e46dbf150d01646d6fe4 Mon Sep 17 00:00:00 2001 From: Kevin J Hoerr Date: Tue, 21 Sep 2021 04:32:11 +0000 Subject: Copy packages from dependency image in prod build --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 9af85dd..5af1015 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,8 +26,8 @@ COPY --from=dependencies /app/.yarnrc.yml ./ COPY --from=dependencies /app/.yarn/releases ./.yarn/releases COPY --from=dependencies /app/.yarn/cache ./.yarn/cache COPY --from=dependencies /app/.yarn/plugins ./.yarn/plugins -RUN yarn install \ - && yarn workspaces focus -A --production \ +COPY --from=dependencies /app/node_modules ./node_modules +RUN yarn workspaces focus -A --production \ && yarn cache clean \ && rm -r yarn.lock .yarn COPY --from=build /app/build ./build -- cgit