Copy deps form builder stage

This commit is contained in:
SebClem 2024-08-13 15:53:02 +02:00
parent 5b7251a3ae
commit 7fdcc32a10
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50

View File

@ -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