From ab5ff6e2b786bc7f0b755c167dbcc5c60ac55b18 Mon Sep 17 00:00:00 2001 From: abdou6666 Date: Wed, 22 Jan 2025 10:27:56 +0100 Subject: [PATCH] fix: optimize docker cache api --- api/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/Dockerfile b/api/Dockerfile index c35c2d60c..7143bcbbd 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -18,12 +18,12 @@ WORKDIR /app COPY package*.json ./ +COPY --from=builder /app/node_modules ./node_modules + COPY --from=builder /app/src/extensions ./src/extensions COPY --from=builder /app/patches ./patches -RUN npm install - COPY . . ENV NODE_ENV=development