From 2f6936ce2ab3915110ad5e47d73483a9a6d303c4 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Tue, 21 Oct 2025 21:35:53 +0800 Subject: [PATCH] update --- Dockerfile | 14 ++++---------- requirements.txt | 31 +++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 10 deletions(-) create mode 100644 requirements.txt diff --git a/Dockerfile b/Dockerfile index 757aa14..ceae771 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,17 +19,11 @@ RUN apt-get update && apt-get install -y \ && rm -rf /var/lib/apt/lists/* # 复制项目文件 -COPY pyproject.toml ./ -COPY uv.lock ./ +COPY requirements.txt ./ -# 安装 uv 包管理器(使用中科大 PyPI 镜像) -RUN pip install -i https://pypi.mirrors.ustc.edu.cn/simple/ uv - -# 配置中科大 PyPI 镜像源 -RUN uv config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple/ - -# 使用 uv 安装 Python 依赖 -RUN uv sync --frozen +# 安装依赖(使用中科大 PyPI 镜像) +RUN pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple/ +RUN pip install -r requirements.txt # 复制应用代码 COPY . . diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..328de0b --- /dev/null +++ b/requirements.txt @@ -0,0 +1,31 @@ +aiosqlite==0.21.0 +annotated-types==0.7.0 +anyio==4.11.0 +certifi==2025.10.5 +click==8.3.0 +distro==1.9.0 +fastapi==0.119.1 +h11==0.16.0 +httpcore==1.0.9 +httptools==0.7.1 +httpx==0.28.1 +idna==3.11 +iso8601==2.1.0 +jiter==0.11.1 +openai==2.6.0 +pydantic==2.12.3 +pydantic-core==2.41.4 +pypika-tortoise==0.6.2 +python-dotenv==1.1.1 +pytz==2025.2 +pyyaml==6.0.3 +sniffio==1.3.1 +starlette==0.48.0 +tortoise-orm==0.25.1 +tqdm==4.67.1 +typing-extensions==4.15.0 +typing-inspection==0.4.2 +uvicorn==0.38.0 +uvloop==0.22.1 +watchfiles==1.1.1 +websockets==15.0.1