From 396bb4b6889b4cbd329fab729e02c453a5f1842f Mon Sep 17 00:00:00 2001 From: Zhichang Yu Date: Thu, 17 Oct 2024 16:34:21 +0800 Subject: [PATCH] Fixed docker build (#2881) ### What problem does this PR solve? Fixed docker build ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) - [ ] New Feature (non-breaking change which adds functionality) - [ ] Documentation Update - [ ] Refactoring - [ ] Performance Improvement - [ ] Other (please describe): --- Dockerfile | 1 + Dockerfile.slim | 1 + 2 files changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 290010998..1db0230f0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,6 +48,7 @@ RUN --mount=type=cache,id=ragflow_builder_apt,target=/var/cache/apt,sharing=lock rm -rf /var/lib/apt/lists/* COPY web web +COPY api api RUN --mount=type=cache,id=ragflow_builder_npm,target=/root/.npm,sharing=locked \ cd web && npm i --force && npm run build diff --git a/Dockerfile.slim b/Dockerfile.slim index f0bed4eb8..6e6bd9ab0 100644 --- a/Dockerfile.slim +++ b/Dockerfile.slim @@ -47,6 +47,7 @@ RUN --mount=type=cache,id=ragflow_builder_apt,target=/var/cache/apt,sharing=lock rm -rf /var/lib/apt/lists/* COPY web web +COPY api api RUN --mount=type=cache,id=ragflow_builder_npm,target=/root/.npm,sharing=locked \ cd web && npm i --force && npm run build