Spaces:
Sleeping
Sleeping
fix pip: split torch index-url from main packages
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -7,10 +7,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 7 |
RUN pip install --no-cache-dir \
|
| 8 |
fastapi uvicorn pydantic \
|
| 9 |
numpy pandas scipy networkx scikit-learn \
|
| 10 |
-
torch --index-url https://download.pytorch.org/whl/cpu \
|
| 11 |
transformers \
|
| 12 |
matplotlib pillow requests beautifulsoup4
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
WORKDIR /app
|
| 15 |
COPY server.py .
|
| 16 |
|
|
|
|
| 7 |
RUN pip install --no-cache-dir \
|
| 8 |
fastapi uvicorn pydantic \
|
| 9 |
numpy pandas scipy networkx scikit-learn \
|
|
|
|
| 10 |
transformers \
|
| 11 |
matplotlib pillow requests beautifulsoup4
|
| 12 |
|
| 13 |
+
RUN pip install --no-cache-dir \
|
| 14 |
+
--index-url https://download.pytorch.org/whl/cpu \
|
| 15 |
+
torch
|
| 16 |
+
|
| 17 |
WORKDIR /app
|
| 18 |
COPY server.py .
|
| 19 |
|