rasmodev commited on
Commit
6c91161
·
verified ·
1 Parent(s): ba3a19a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -11,14 +11,14 @@ RUN useradd -m -u 1000 appuser
11
 
12
  WORKDIR /app
13
 
14
- COPY requirements.txt .
15
-
16
  RUN pip install --no-cache-dir --upgrade pip && \
17
  pip install --no-cache-dir \
18
- torch==2.2.2+cpu \
19
- torchvision==0.17.2+cpu \
20
- --index-url https://download.pytorch.org/whl/cpu
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 . .