Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -17,8 +17,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 17 |
ca-certificates \
|
| 18 |
&& rm -rf /var/lib/apt/lists/*
|
| 19 |
|
| 20 |
-
# 2. 安装 Hugging Face 命令行工具(
|
| 21 |
-
RUN pip3 install --no-cache-dir huggingface_hub
|
| 22 |
|
| 23 |
# 3. 构建环境优化(仅更新证书,不修改 Git 不安全配置)
|
| 24 |
RUN update-ca-certificates
|
|
|
|
| 17 |
ca-certificates \
|
| 18 |
&& rm -rf /var/lib/apt/lists/*
|
| 19 |
|
| 20 |
+
# 2. 安装 Hugging Face 命令行工具(允许覆盖外部管理环境)
|
| 21 |
+
RUN pip3 install --no-cache-dir huggingface_hub --break-system-packages
|
| 22 |
|
| 23 |
# 3. 构建环境优化(仅更新证书,不修改 Git 不安全配置)
|
| 24 |
RUN update-ca-certificates
|