Skip to content

Commit 378a491

Browse files
author
Wenruli
committed
fix:基础镜像修改
1 parent afb3454 commit 378a491

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/backend/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ WORKDIR /app
44

55
COPY ./ ./
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
1115
RUN patch -p1 < /app/bisheng/patches/langchain_openai.patch /usr/local/lib/python3.10/site-packages/langchain_openai/chat_models/base.py

src/backend/base.Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,12 @@ COPY ./pyproject.toml ./
3838
# 安装 Python 依赖
3939
RUN 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 && \

0 commit comments

Comments
 (0)