Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -0
Dockerfile
CHANGED
|
@@ -10,6 +10,8 @@ RUN apt-get update && apt-get install -y \
|
|
| 10 |
python3-pip \
|
| 11 |
python3-requests \
|
| 12 |
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
| 13 |
RUN git clone https://github.com/tashfeenahmed/freellmapi.git .
|
| 14 |
RUN npm config set registry https://registry.npmmirror.com && npm install
|
| 15 |
RUN npm run build
|
|
|
|
| 10 |
python3-pip \
|
| 11 |
python3-requests \
|
| 12 |
&& rm -rf /var/lib/apt/lists/*
|
| 13 |
+
# 确保 requests 模块可用(pip 安装到正确路径)
|
| 14 |
+
RUN pip3 install requests --break-system-packages
|
| 15 |
RUN git clone https://github.com/tashfeenahmed/freellmapi.git .
|
| 16 |
RUN npm config set registry https://registry.npmmirror.com && npm install
|
| 17 |
RUN npm run build
|