vettorazi commited on
Commit
255b292
1 Parent(s): 125ea29
Files changed (1) hide show
  1. Dockerfile +8 -5
Dockerfile CHANGED
@@ -31,9 +31,12 @@ COPY --chown=user requirements.txt .
31
  RUN pip install --no-cache-dir --upgrade pip setuptools wheel
32
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
33
 
34
- # Clone ComfyUI
35
- RUN git clone https://github.com/comfyanonymous/ComfyUI.git . && \
36
- pip install --no-cache-dir -r requirements.txt
 
 
 
37
 
38
  # Download specific models
39
  ARG HF_TOKEN
@@ -54,8 +57,8 @@ EXPOSE 8188 7860
54
 
55
  # Create entrypoint script
56
  RUN echo '#!/bin/bash\n\
57
- python main.py --listen 0.0.0.0 --port 8188 --use-split-cross-attention &\n\
58
- python wsj-server.py &\n\
59
  wait -n' > entrypoint.sh && chmod +x entrypoint.sh
60
 
61
  CMD ["./entrypoint.sh"]
 
31
  RUN pip install --no-cache-dir --upgrade pip setuptools wheel
32
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
33
 
34
+ # Clone ComfyUI into a subdirectory
35
+ RUN git clone https://github.com/comfyanonymous/ComfyUI.git comfyui
36
+ WORKDIR $HOME/app/comfyui
37
+ RUN pip install --no-cache-dir -r requirements.txt
38
+
39
+ WORKDIR $HOME/app
40
 
41
  # Download specific models
42
  ARG HF_TOKEN
 
57
 
58
  # Create entrypoint script
59
  RUN echo '#!/bin/bash\n\
60
+ cd $HOME/app/comfyui && python main.py --listen 0.0.0.0 --port 8188 --use-split-cross-attention &\n\
61
+ cd $HOME/app && python wsj-server.py &\n\
62
  wait -n' > entrypoint.sh && chmod +x entrypoint.sh
63
 
64
  CMD ["./entrypoint.sh"]