chore: 更新依赖和docker配置
更新langchain依赖至1.2.0版本 添加uv.lock文件到git跟踪和docker构建 使用--frozen参数确保依赖版本锁定
This commit is contained in:
parent
9f641ede78
commit
6d064d3916
1
.gitignore
vendored
1
.gitignore
vendored
@ -24,6 +24,7 @@ logs
|
||||
*.log.*
|
||||
*.db
|
||||
*.lock
|
||||
!uv.lock
|
||||
tmp
|
||||
cache
|
||||
.cache
|
||||
|
||||
@ -39,6 +39,8 @@ RUN set -ex \
|
||||
# 复制项目配置文件
|
||||
COPY ../pyproject.toml /app/pyproject.toml
|
||||
COPY ../.python-version /app/.python-version
|
||||
COPY ../uv.lock /app/uv.lock
|
||||
|
||||
|
||||
# 接收构建参数(如果出现代理错误,则把下面关于环境变量的都注释掉,并注释掉 dock-compose.yml 的 6-8 行)
|
||||
ARG HTTP_PROXY=""
|
||||
@ -52,7 +54,7 @@ ENV HTTP_PROXY=$HTTP_PROXY \
|
||||
|
||||
# 如果网络还是不好,可以在后面添加 --index-url https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
RUN --mount=type=cache,target=/root/.cache/uv \
|
||||
uv sync --no-dev --index-url https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
uv sync --no-dev --frozen --index-url https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
|
||||
# 激活虚拟环境并添加到PATH
|
||||
ENV PATH="/app/.venv/bin:$PATH"
|
||||
|
||||
@ -8,7 +8,7 @@ dependencies = [
|
||||
"asyncpg>=0.30.0",
|
||||
"aiosqlite>=0.20.0",
|
||||
"sqlalchemy[asyncio]>=2.0.0",
|
||||
"langchain>=1.0.2",
|
||||
"langchain>=1.2.0",
|
||||
"chromadb>=1.3",
|
||||
"colorlog>=6.9.0",
|
||||
"dashscope>=1.23.2",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user