Nodiw52992 commited on
Commit
30e4133
·
verified ·
1 Parent(s): 67a6b58

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -16,6 +16,9 @@ RUN python3 -m venv .venv \
16
  && pip install huggingface_hub xformers!=0.0.18 \
17
  && pip install -r requirements.txt
18
 
 
 
 
19
  # Copy download script
20
  COPY download_flux.py /workspace/ComfyUI/download_flux.py
21
 
@@ -26,4 +29,5 @@ RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
26
 
27
  EXPOSE 7860
28
 
29
- CMD ["bash", "-lc", "source .venv/bin/activate && python3 main.py --listen 0.0.0.0 --port 7860 --cpu"]
 
 
16
  && pip install huggingface_hub xformers!=0.0.18 \
17
  && pip install -r requirements.txt
18
 
19
+ # Create the user directory with permissive rights
20
+ RUN mkdir -p /workspace/ComfyUI/user && chmod -R 777 /workspace/ComfyUI/user
21
+
22
  # Copy download script
23
  COPY download_flux.py /workspace/ComfyUI/download_flux.py
24
 
 
29
 
30
  EXPOSE 7860
31
 
32
+ # Use split cross attention flag and listen on all interfaces, enforce CPU mode
33
+ CMD ["/bin/bash", "-c", "source .venv/bin/activate && python3 main.py --listen 0.0.0.0 --port 7860 --cpu --use-split-cross-attention"]