Spaces:
Sleeping
Sleeping
saifisvibinn commited on
Commit ·
485e497
1
Parent(s): 6463f1f
Simplify Dockerfile: split RUN commands for better error visibility
Browse files- Dockerfile +6 -4
Dockerfile
CHANGED
|
@@ -21,12 +21,14 @@ RUN apt-get update && apt-get install -y \
|
|
| 21 |
COPY requirements.txt .
|
| 22 |
|
| 23 |
# Install Python dependencies
|
| 24 |
-
#
|
| 25 |
-
RUN pip install --no-cache-dir --upgrade pip setuptools wheel
|
| 26 |
-
|
|
|
|
|
|
|
| 27 |
torch==2.5.1+cpu torchvision==0.20.1+cpu
|
| 28 |
|
| 29 |
-
# Install remaining dependencies
|
| 30 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 31 |
|
| 32 |
# Copy application files
|
|
|
|
| 21 |
COPY requirements.txt .
|
| 22 |
|
| 23 |
# Install Python dependencies
|
| 24 |
+
# Upgrade pip first
|
| 25 |
+
RUN pip install --no-cache-dir --upgrade pip setuptools wheel
|
| 26 |
+
|
| 27 |
+
# Install PyTorch CPU version (requires special index)
|
| 28 |
+
RUN pip install --no-cache-dir --extra-index-url https://download.pytorch.org/whl/cpu \
|
| 29 |
torch==2.5.1+cpu torchvision==0.20.1+cpu
|
| 30 |
|
| 31 |
+
# Install remaining dependencies from requirements.txt
|
| 32 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 33 |
|
| 34 |
# Copy application files
|