Skip to content

Commit 965d8b1

Browse files
committed
Merge branch 'add-preprocessed-status'
2 parents 92a6656 + e5cbc59 commit 965d8b1

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

.github/workflows/pypi-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Build Frontend WebUI
2727
run: |
2828
cd lightrag_webui
29-
bun install --frozen-lockfile --production
29+
bun install --frozen-lockfile
3030
bun run build
3131
cd ..
3232

Dockerfile

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
# Build stage
1+
# Frontend build stage
2+
FROM oven/bun:1 AS frontend-builder
3+
4+
WORKDIR /app
5+
6+
# Copy frontend source code
7+
COPY lightrag_webui/ ./lightrag_webui/
8+
9+
# Build frontend
10+
RUN cd lightrag_webui && \
11+
bun install --frozen-lockfile && \
12+
bun run build
13+
14+
# Python build stage
215
FROM python:3.12-slim AS builder
316

417
WORKDIR /app
@@ -20,6 +33,9 @@ COPY pyproject.toml .
2033
COPY setup.py .
2134
COPY lightrag/ ./lightrag/
2235

36+
# Copy frontend build output from frontend-builder stage
37+
COPY --from=frontend-builder /app/lightrag/api/webui ./lightrag/api/webui
38+
2339
# Install dependencies
2440
ENV PATH="/root/.cargo/bin:${PATH}"
2541
RUN pip install --user --no-cache-dir --use-pep517 .
@@ -42,7 +58,7 @@ RUN pip install --upgrade pip setuptools wheel
4258

4359
# Copy only necessary files from builder
4460
COPY --from=builder /root/.local /root/.local
45-
COPY ./lightrag ./lightrag
61+
COPY --from=builder /app/lightrag ./lightrag
4662
COPY setup.py .
4763

4864
RUN pip install --use-pep517 ".[api]"

0 commit comments

Comments
 (0)