mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-25 15:17:26 +08:00
fix: More review comments addressed
This commit is contained in:
@ -30,6 +30,12 @@ RUN apt-get update \
|
||||
COPY ./src/backend ./src/backend
|
||||
COPY ./src/lfx ./src/lfx
|
||||
COPY ./src/sdk ./src/sdk
|
||||
# Workspace bundles (LE-1023 pilot+): each Bundle is shipped as a
|
||||
# separate distribution that langflow-base depends on by name (e.g.
|
||||
# ``lfx-duckduckgo``). Without copying the source tree, the install
|
||||
# below cannot resolve the path-based bundle deps and ends up with a
|
||||
# Langflow image missing components that previously lived in lfx.
|
||||
COPY ./src/bundles ./src/bundles
|
||||
|
||||
# Create venv and install langflow-base with dependencies
|
||||
# Using uv pip instead of uv sync to avoid workspace complexities
|
||||
@ -37,9 +43,15 @@ RUN uv venv /app/.venv
|
||||
ENV PATH="/app/.venv/bin:$PATH"
|
||||
ENV VIRTUAL_ENV="/app/.venv"
|
||||
|
||||
# Install langflow-base with all extras except dev (which includes Playwright)
|
||||
# Install langflow-base with all extras except dev (which includes Playwright).
|
||||
# Each pilot-extracted bundle is installed alongside so the runtime image
|
||||
# keeps shipping the same component set users had before LE-1023.
|
||||
RUN --mount=type=cache,target=/root/.cache/uv \
|
||||
uv pip install ./src/sdk ./src/lfx "./src/backend/base[complete,postgresql]"
|
||||
uv pip install \
|
||||
./src/sdk \
|
||||
./src/lfx \
|
||||
./src/bundles/duckduckgo \
|
||||
"./src/backend/base[complete,postgresql]"
|
||||
|
||||
################################
|
||||
# RUNTIME
|
||||
|
||||
@ -79,6 +79,19 @@ RUN --mount=type=cache,target=/root/.cache/uv \
|
||||
RUSTFLAGS='--cfg reqwest_unstable' \
|
||||
uv sync --frozen --no-dev --no-editable --extra postgresql
|
||||
|
||||
# Pilot Bundle re-attach (LE-1023): ``langflow-base`` no longer pulls in
|
||||
# DuckDuckGo (it moved to the standalone ``lfx-duckduckgo`` distribution
|
||||
# whose pyproject lives at ``src/bundles/duckduckgo``). The base image
|
||||
# was the user-facing path for that component before the move; install
|
||||
# every extracted bundle so the runtime image keeps the same component
|
||||
# set. ``--no-deps`` is intentional: the bundle's runtime deps are
|
||||
# already in the langflow-base lockfile (lfx, langchain-community,
|
||||
# ddgs); avoid pulling a parallel ``lfx`` install.
|
||||
RUN --mount=type=cache,target=/root/.cache/uv \
|
||||
RUSTFLAGS='--cfg reqwest_unstable' \
|
||||
uv pip install --no-deps /app/src/bundles/duckduckgo \
|
||||
&& uv pip install ddgs
|
||||
|
||||
################################
|
||||
# RUNTIME
|
||||
# Setup user, utilities and copy the virtual environment only
|
||||
|
||||
Reference in New Issue
Block a user