File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,12 @@ WORKDIR /app
44
55COPY ./ ./
66
7- RUN uv pip install -r <(uv pip compile pyproject.toml --upgrade) --system --no-cache-dir && \
8- uv cache clean
7+ # 生成并安装依赖
8+ RUN uv pip compile pyproject.toml --upgrade --output-file requirements.txt && \
9+ uv pip install -r requirements.txt --system --no-cache-dir && \
10+ uv cache clean && \
11+ rm -f requirements.txt
12+
913
1014# patch langchain-openai lib. remove this when langchain-openai support reasoning_content
1115RUN patch -p1 < /app/bisheng/patches/langchain_openai.patch /usr/local/lib/python3.10/site-packages/langchain_openai/chat_models/base.py
Original file line number Diff line number Diff line change @@ -38,10 +38,12 @@ COPY ./pyproject.toml ./
3838# 安装 Python 依赖
3939RUN source $HOME/.local/bin/env && \
4040 python -m pip install --upgrade pip && \
41- uv pip install -r <(uv pip compile pyproject.toml) --system --no-cache-dir && \
41+ uv pip compile pyproject.toml --output-file requirements.txt && \
42+ uv pip install -r requirements.txt --system --no-cache-dir && \
4243 uv cache clean
4344
4445
46+
4547# RUN python -m pip install --upgrade pip && \
4648# pip install shapely==2.0.1 && \
4749# poetry config virtualenvs.create false && \
You can’t perform that action at this time.
0 commit comments