update
This commit is contained in:
14
Dockerfile
14
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 . .
|
||||
|
||||
31
requirements.txt
Normal file
31
requirements.txt
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user