From 7fdcc32a100ede85e111fc96daad836249567917 Mon Sep 17 00:00:00 2001 From: SebClem Date: Tue, 13 Aug 2024 15:53:02 +0200 Subject: [PATCH] Copy deps form builder stage --- nextcloud_backup/Dockerfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/nextcloud_backup/Dockerfile b/nextcloud_backup/Dockerfile index 05fb3f2..80e7041 100644 --- a/nextcloud_backup/Dockerfile +++ b/nextcloud_backup/Dockerfile @@ -41,12 +41,9 @@ RUN ln -s /usr/bin/node /usr/local/sbin/node WORKDIR /opt/nextcloud_backup/ COPY backend/package.json backend/pnpm-lock.yaml ./ -RUN corepack enable -RUN pnpm install - -# Copy all source code COPY --from=backend-builder /app/dist . +COPY --from=backend-builder /app/node_modules ./node_modules COPY --from=frontend-builder /app/dist ./public # Build arguments