Commit
·
fbb9044
1
Parent(s):
93e3c04
build(Dockerfile): 更新 Python 依赖安装方式
Browse files- 移除 Dockerfile 中单独安装 brotli 的步骤
- 在 requirements.txt 中添加 brotli 依赖
- 更新 requirements.txt 中的依赖版本
- Dockerfile +1 -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
|
| 2 |
-
granian[reload]
|
| 3 |
-
requests
|
| 4 |
-
pydantic
|
| 5 |
-
pydantic-settings
|
| 6 |
-
pydantic-core
|
| 7 |
-
typing-inspection
|
| 8 |
-
fake-useragent
|
|
|
|
|
|
| 1 |
+
fastapi
|
| 2 |
+
granian[reload]
|
| 3 |
+
requests
|
| 4 |
+
pydantic
|
| 5 |
+
pydantic-settings
|
| 6 |
+
pydantic-core
|
| 7 |
+
typing-inspection
|
| 8 |
+
fake-useragent
|
| 9 |
+
brotli
|