mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-24 19:04:04 +08:00
fix: remove duplicate uv.lock from workspace member Forward-port of #13326 to main. The monorepo should keep only one uv.lock at the workspace root; src/backend/base/uv.lock was a stale duplicate. The scheduled nightly build runs from main's workflow definition, so create-nightly-tag still ran `git add ... src/backend/base/uv.lock` against a tree where the file no longer exists, failing with exit 128. - Delete src/backend/base/uv.lock - nightly_build.yml: drop base-dir `uv lock` regeneration and the base lockfile from `git add` - Remove COPY/bind-mount of the base lockfile from all Dockerfiles - Makefile: lock_base/lock now lock only the root workspace - changes-filter.yaml: drop the base lockfile path - .secrets.baseline: shift nightly_build.yml line number 305 -> 304 Fixes the failing nightly: https://github.com/langflow-ai/langflow/actions/runs/26699469476
35 lines
1.1 KiB
Docker
35 lines
1.1 KiB
Docker
FROM ghcr.io/astral-sh/uv:python3.14-bookworm-slim
|
|
ENV TZ=UTC
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update \
|
|
&& apt-get upgrade -y \
|
|
&& apt-get install -y \
|
|
build-essential \
|
|
curl \
|
|
npm \
|
|
git \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY . /app
|
|
|
|
# Install dependencies using uv
|
|
RUN --mount=type=cache,target=/root/.cache/uv \
|
|
--mount=type=bind,source=uv.lock,target=uv.lock \
|
|
--mount=type=bind,source=README.md,target=README.md \
|
|
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
|
|
--mount=type=bind,source=src/backend/base/README.md,target=src/backend/base/README.md \
|
|
--mount=type=bind,source=src/backend/base/pyproject.toml,target=src/backend/base/pyproject.toml \
|
|
--mount=type=bind,source=src/lfx/README.md,target=src/lfx/README.md \
|
|
--mount=type=bind,source=src/lfx/pyproject.toml,target=src/lfx/pyproject.toml \
|
|
--mount=type=bind,source=src/sdk/README.md,target=src/sdk/README.md \
|
|
--mount=type=bind,source=src/sdk/pyproject.toml,target=src/sdk/pyproject.toml \
|
|
uv sync --frozen --no-install-project --no-dev --extra postgresql
|
|
|
|
EXPOSE 7860
|
|
EXPOSE 3000
|
|
|
|
CMD ["./docker/dev.start.sh"]
|