Edgeev commited on
Commit
eac40f3
·
verified ·
1 Parent(s): 7815d10

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -7,8 +7,11 @@ RUN apt-get update && apt-get install -y \
7
  WORKDIR /app
8
  COPY . .
9
 
10
- # 🔧 Установка только CPU версии torch
11
- RUN pip install --index-url https://download.pytorch.org/whl/cpu -r requirements.txt
 
 
 
12
 
13
  EXPOSE 7860
14
  CMD ["python", "app.py"]
 
7
  WORKDIR /app
8
  COPY . .
9
 
10
+ # 🔧 Устанавливаем torch отдельно, CPU-only
11
+ RUN pip install torch==2.1.2+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html
12
+
13
+ # 🧠 Остальные зависимости — с PyPI
14
+ RUN pip install -r requirements.txt
15
 
16
  EXPOSE 7860
17
  CMD ["python", "app.py"]