File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 11# Stage 1: Build Backend
22FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim AS backend-builder
3- ADD . /flare-ai-rag
43WORKDIR /flare-ai-rag
5- RUN uv sync --frozen
4+ COPY pyproject.toml README.md ./
5+ COPY src ./src
6+ RUN uv venv .venv && \
7+ . .venv/bin/activate && \
8+ uv pip install -e .
69
710# Stage 2: Final Image
811FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
12+ # Install OS-level dependencies needed for Qdrant
13+ RUN apt-get update && \
14+ apt-get install -y \
15+ wget \
16+ tar \
17+ && rm -rf /var/lib/apt/lists/*
918
1019WORKDIR /app
1120COPY --from=backend-builder /flare-ai-rag/.venv ./.venv
1221COPY --from=backend-builder /flare-ai-rag/src ./src
1322COPY --from=backend-builder /flare-ai-rag/pyproject.toml .
1423COPY --from=backend-builder /flare-ai-rag/README.md .
1524
25+ # Download and install Qdrant binary
26+ RUN wget https://github.com/qdrant/qdrant/releases/download/v1.13.4/qdrant-x86_64-unknown-linux-gnu.tar.gz && \
27+ tar -xzf qdrant-x86_64-unknown-linux-gnu.tar.gz && \
28+ mv qdrant /usr/local/bin/ && \
29+ rm qdrant-x86_64-unknown-linux-gnu.tar.gz
30+
1631# Allow workload operator to override environment variables
1732LABEL "tee.launch_policy.allow_env_override" ="OPEN_ROUTER_API_KEY"
1833LABEL "tee.launch_policy.log_redirect" ="always"
1934
35+ ENV PATH="/app/.venv/bin:$PATH"
2036CMD ["uv" , "run" , "start-rag" ]
You can’t perform that action at this time.
0 commit comments