mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-27 14:50:20 +08:00
Tweak dockerfile
This commit is contained in:
parent
10448e67ef
commit
e7f7a8f80c
@ -2,7 +2,7 @@ FROM nvcr.io/nvidia/pytorch:25.03-py3
|
|||||||
|
|
||||||
ENV TZ="Etc/UTC"
|
ENV TZ="Etc/UTC"
|
||||||
|
|
||||||
ENV PYTORCH_CUDA_ALLOC_CONF="backend:cudaMallocAsync"
|
ENV PYTORCH_CUDA_ALLOC_CONF="backend:cudaMallocAsync,expandable_segments:True"
|
||||||
ENV UV_COMPILE_BYTECODE=1
|
ENV UV_COMPILE_BYTECODE=1
|
||||||
ENV UV_NO_CACHE=1
|
ENV UV_NO_CACHE=1
|
||||||
ENV UV_SYSTEM_PYTHON=1
|
ENV UV_SYSTEM_PYTHON=1
|
||||||
@ -56,7 +56,8 @@ EOF
|
|||||||
ADD . /workspace/src
|
ADD . /workspace/src
|
||||||
ARG SOURCES="comfyui[attention,comfyui_manager]@./src"
|
ARG SOURCES="comfyui[attention,comfyui_manager]@./src"
|
||||||
# this builds from github
|
# this builds from github
|
||||||
#ARG SOURCES="comfyui[attention,comfyui_manager]@git+https://github.com/hiddenswitch/ComfyUI.git"
|
# useful if you are copying and pasted in order to customize this
|
||||||
|
# ARG SOURCES="comfyui[attention,comfyui_manager]@git+https://github.com/hiddenswitch/ComfyUI.git"
|
||||||
ENV SOURCES=$SOURCES
|
ENV SOURCES=$SOURCES
|
||||||
|
|
||||||
RUN uv pip install $SOURCES
|
RUN uv pip install $SOURCES
|
||||||
@ -64,8 +65,8 @@ RUN uv pip install $SOURCES
|
|||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
# addresses https://github.com/pytorch/pytorch/issues/104801
|
# addresses https://github.com/pytorch/pytorch/issues/104801
|
||||||
# and issues reported by importing nodes_canny
|
# and issues reported by importing nodes_canny
|
||||||
RUN python -c "import torch; import xformers; import sageattention; import cv2"
|
# smoke test
|
||||||
RUN comfyui --quick-test-for-ci --cpu --cwd /workspace
|
RUN python -c "import torch; import xformers; import sageattention; import cv2" && comfyui --quick-test-for-ci --cpu --cwd /workspace
|
||||||
|
|
||||||
EXPOSE 8188
|
EXPOSE 8188
|
||||||
CMD ["python", "-m", "comfy.cmd.main", "--listen", "--use-sage-attention", "--reserve-vram=0", "--logging-level=INFO", "--enable-cors"]
|
CMD ["python", "-m", "comfy.cmd.main", "--listen", "--use-sage-attention", "--reserve-vram=0", "--logging-level=INFO", "--enable-cors"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user