We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9049091 commit c69e264Copy full SHA for c69e264
Dockerfile
@@ -16,14 +16,17 @@ RUN git clone https://github.com/comfyanonymous/ComfyUI.git /ComfyUI
16
# 创建并激活虚拟环境
17
RUN python3 -m venv /venv
18
19
+# 升级虚拟环境中的 pip
20
+RUN /venv/bin/pip install --upgrade pip
21
+
22
# 激活虚拟环境并安装 PyTorch 相关依赖
23
RUN /venv/bin/pip install --no-cache-dir torch torchvision torchaudio \
24
--index-url https://download.pytorch.org/whl/rocm6.2
25
26
# 安装 ComfyUI 项目依赖
27
WORKDIR /ComfyUI
-RUN pip3 install --no-cache-dir -r requirements.txt
28
+RUN /venv/bin/pip install --no-cache-dir -r requirements.txt
29
30
# 暴露服务端口并设置默认启动命令
31
EXPOSE 8188
-CMD ["python3", "main.py"]
32
+CMD ["/venv/bin/python3", "main.py"]
0 commit comments