Merge branch 'add-preprocessed-status'

This commit is contained in:
yangdx 2025-10-14 15:03:57 +08:00
commit 965d8b1628
2 changed files with 19 additions and 3 deletions

View file

@ -26,7 +26,7 @@ jobs:
- name: Build Frontend WebUI - name: Build Frontend WebUI
run: | run: |
cd lightrag_webui cd lightrag_webui
bun install --frozen-lockfile --production bun install --frozen-lockfile
bun run build bun run build
cd .. cd ..

View file

@ -1,4 +1,17 @@
# Build stage # Frontend build stage
FROM oven/bun:1 AS frontend-builder
WORKDIR /app
# Copy frontend source code
COPY lightrag_webui/ ./lightrag_webui/
# Build frontend
RUN cd lightrag_webui && \
bun install --frozen-lockfile && \
bun run build
# Python build stage
FROM python:3.12-slim AS builder FROM python:3.12-slim AS builder
WORKDIR /app WORKDIR /app
@ -20,6 +33,9 @@ COPY pyproject.toml .
COPY setup.py . COPY setup.py .
COPY lightrag/ ./lightrag/ COPY lightrag/ ./lightrag/
# Copy frontend build output from frontend-builder stage
COPY --from=frontend-builder /app/lightrag/api/webui ./lightrag/api/webui
# Install dependencies # Install dependencies
ENV PATH="/root/.cargo/bin:${PATH}" ENV PATH="/root/.cargo/bin:${PATH}"
RUN pip install --user --no-cache-dir --use-pep517 . RUN pip install --user --no-cache-dir --use-pep517 .
@ -42,7 +58,7 @@ RUN pip install --upgrade pip setuptools wheel
# Copy only necessary files from builder # Copy only necessary files from builder
COPY --from=builder /root/.local /root/.local COPY --from=builder /root/.local /root/.local
COPY ./lightrag ./lightrag COPY --from=builder /app/lightrag ./lightrag
COPY setup.py . COPY setup.py .
RUN pip install --use-pep517 ".[api]" RUN pip install --use-pep517 ".[api]"