Skip to content

Commit 6d064d3

Browse files
committed
chore: 更新依赖和docker配置
更新langchain依赖至1.2.0版本 添加uv.lock文件到git跟踪和docker构建 使用--frozen参数确保依赖版本锁定
1 parent 9f641ed commit 6d064d3

File tree

4 files changed

+7976
-2
lines changed

4 files changed

+7976
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ logs
2424
*.log.*
2525
*.db
2626
*.lock
27+
!uv.lock
2728
tmp
2829
cache
2930
.cache

docker/api.Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ RUN set -ex \
3939
# 复制项目配置文件
4040
COPY ../pyproject.toml /app/pyproject.toml
4141
COPY ../.python-version /app/.python-version
42+
COPY ../uv.lock /app/uv.lock
43+
4244

4345
# 接收构建参数(如果出现代理错误,则把下面关于环境变量的都注释掉,并注释掉 dock-compose.yml 的 6-8 行)
4446
ARG HTTP_PROXY=""
@@ -52,7 +54,7 @@ ENV HTTP_PROXY=$HTTP_PROXY \
5254

5355
# 如果网络还是不好,可以在后面添加 --index-url https://pypi.tuna.tsinghua.edu.cn/simple
5456
RUN --mount=type=cache,target=/root/.cache/uv \
55-
uv sync --no-dev --index-url https://pypi.tuna.tsinghua.edu.cn/simple
57+
uv sync --no-dev --frozen --index-url https://pypi.tuna.tsinghua.edu.cn/simple
5658

5759
# 激活虚拟环境并添加到PATH
5860
ENV PATH="/app/.venv/bin:$PATH"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dependencies = [
88
"asyncpg>=0.30.0",
99
"aiosqlite>=0.20.0",
1010
"sqlalchemy[asyncio]>=2.0.0",
11-
"langchain>=1.0.2",
11+
"langchain>=1.2.0",
1212
"chromadb>=1.3",
1313
"colorlog>=6.9.0",
1414
"dashscope>=1.23.2",

0 commit comments

Comments
 (0)