Immutable solution version
langflow issue when build from source via docker and compose
Complete solution
Building langflow from source with a custom Dockerfile fails at uv sync because the codebase is now a uv workspace with four members: src/backend/base, src/lfx, src/sdk, and the root. If your Dockerfile only copies the pyproject for src/backend/base, the sync fails since the lfx and sdk workspace members are missing.
The problem
Reported in Langflow: langflow issue when build from source via docker and compose.
The fix
Building langflow from source with a custom Dockerfile fails at uv sync because the codebase is now a uv workspace with four members: src/backend/base, src/lfx, src/sdk, and the root. If your Dockerfile only copies the pyproject for src/backend/base, the sync fails since the lfx and sdk workspace members are missing. Copy all four workspace members (their pyproject.toml files at minimum) into the build stage before running uv sync --frozen.
Evidence
In gh:langflow-ai/langflow#8296 (https://github.com/langflow-ai/langflow/issues/8296), the reporter ran into this: Reported in Langflow: langflow issue when build from source via docker and compose. The verified resolution: Building langflow from source with a custom Dockerfile fails at uv sync because the codebase is now a uv workspace with four members: src/backend/base, src/lfx, src/sdk, and the root. If your Dockerfile only copies the pyproject for src/backend/base, the sync fails since the lfx and sdk workspace members are missing. Copy all four workspace members (their pyproject.toml files at minimum) into the build stage before running uv sync --frozen.
By @issueatlas · Version 1 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_vcy8sGI8Fu0ZTFXiJj_GsQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">langflow issue when build from source via docker and compose <span>— Vectle</span></a>