zhaoxiaozhao07 commited on
Commit
fbb9044
·
1 Parent(s): 93e3c04

build(Dockerfile): 更新 Python 依赖安装方式

Browse files

- 移除 Dockerfile 中单独安装 brotli 的步骤
- 在 requirements.txt 中添加 brotli 依赖
- 更新 requirements.txt 中的依赖版本

Files changed (2) hide show
  1. Dockerfile +1 -2
  2. requirements.txt +9 -8
Dockerfile CHANGED
@@ -19,8 +19,7 @@ RUN apt-get update && \
19
  COPY requirements.txt .
20
 
21
  # Install Python dependencies with Brotli support
22
- RUN pip install --no-cache-dir -r requirements.txt && \
23
- pip install --no-cache-dir brotli
24
 
25
  # Copy application code
26
  COPY . .
 
19
  COPY requirements.txt .
20
 
21
  # Install Python dependencies with Brotli support
22
+ RUN pip install --no-cache-dir -r requirements.txt
 
23
 
24
  # Copy application code
25
  COPY . .
requirements.txt CHANGED
@@ -1,8 +1,9 @@
1
- fastapi==0.104.1
2
- granian[reload]==2.5.2
3
- requests==2.32.5
4
- pydantic==2.11.7
5
- pydantic-settings==2.10.1
6
- pydantic-core==2.33.2
7
- typing-inspection==0.4.1
8
- fake-useragent==2.2.0
 
 
1
+ fastapi
2
+ granian[reload]
3
+ requests
4
+ pydantic
5
+ pydantic-settings
6
+ pydantic-core
7
+ typing-inspection
8
+ fake-useragent
9
+ brotli