Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
|
@@ -11,14 +11,14 @@ RUN useradd -m -u 1000 appuser
|
|
| 11 |
|
| 12 |
WORKDIR /app
|
| 13 |
|
| 14 |
-
|
| 15 |
-
|
| 16 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 17 |
pip install --no-cache-dir \
|
| 18 |
-
torch==2.2.2
|
| 19 |
-
torchvision==0.17.2
|
| 20 |
-
--
|
| 21 |
|
|
|
|
| 22 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 23 |
|
| 24 |
COPY . .
|
|
|
|
| 11 |
|
| 12 |
WORKDIR /app
|
| 13 |
|
| 14 |
+
# Download and install torch CPU wheel directly
|
|
|
|
| 15 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 16 |
pip install --no-cache-dir \
|
| 17 |
+
"torch==2.2.2" \
|
| 18 |
+
"torchvision==0.17.2" \
|
| 19 |
+
--find-links https://download.pytorch.org/whl/cpu/torch_stable.html
|
| 20 |
|
| 21 |
+
COPY requirements.txt .
|
| 22 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 23 |
|
| 24 |
COPY . .
|