rikunarita-2 commited on
Commit
3f52be4
·
verified ·
1 Parent(s): 1eb0a6e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -44,11 +44,11 @@ ENV VIRTUAL_ENV=/home/hf/ComfyUI/venv
44
  RUN python3 -m venv $VIRTUAL_ENV
45
  ENV PATH="$VIRTUAL_ENV/bin:$PATH"
46
 
47
- # 💡 完璧な修正:すべてのインスールで一貫して --index-url指定
48
- # かつ、最後に CPU専用版 torch を上書きすることで確実に OpenMP/oneDNN 最適化バナリ固定します。
49
  RUN pip install --no-cache-dir --upgrade pip && \
50
- pip install --no-cache-dir -r requirements.txt --index-url https://download.pytorch.org/whl/cpu && \
51
- pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
52
 
53
  # ------------------------------------------------
54
  # 4. モデルのダウンロード
 
44
  RUN python3 -m venv $VIRTUAL_ENV
45
  ENV PATH="$VIRTUAL_ENV/bin:$PATH"
46
 
47
+ # 💡 修正:最初にCPU専用リポジリから torch 関連ピンポイントで導入
48
+ # 通常のPyPIンデックスから残りの依存関係(requirements.txt)安全に解決します。
49
  RUN pip install --no-cache-dir --upgrade pip && \
50
+ pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu && \
51
+ pip install --no-cache-dir -r requirements.txt
52
 
53
  # ------------------------------------------------
54
  # 4. モデルのダウンロード