Spaces:
Sleeping
Sleeping
Mohammad Zeeshan commited on
Update Dockerfile
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
|
@@ -6,6 +6,11 @@ COPY requirements.txt .
|
|
| 6 |
|
| 7 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
# 🚀 Stage 2: Final optimized production image
|
| 10 |
FROM python:3.9-slim
|
| 11 |
|
|
|
|
| 6 |
|
| 7 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 8 |
|
| 9 |
+
RUN pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
|
| 10 |
+
RUN python -c "import torch;
|
| 11 |
+
print(torch.__version__);
|
| 12 |
+
print(torch.cuda.is_available())"
|
| 13 |
+
|
| 14 |
# 🚀 Stage 2: Final optimized production image
|
| 15 |
FROM python:3.9-slim
|
| 16 |
|