Fix: After executing npm i --force locally, the login page cannot be opened #4290 (#4292)

### What problem does this PR solve?

Fix: After executing npm i --force locally, the login page cannot be
opened #4290

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu
2024-12-30 18:19:58 +08:00
committed by GitHub
parent d1971e988a
commit f619d5a9b6
9 changed files with 110 additions and 265 deletions

View File

@ -147,7 +147,7 @@ RUN --mount=type=cache,id=ragflow_poetry,target=/root/.cache/pypoetry,sharing=lo
COPY web web
COPY docs docs
RUN --mount=type=cache,id=ragflow_npm,target=/root/.npm,sharing=locked \
cd web && npm install --force && npm run build
cd web && npm install && npm run build
COPY .git /ragflow/.git