Defter77 commited on
Commit
dbff22e
·
verified ·
1 Parent(s): b5519a3

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -8
Dockerfile CHANGED
@@ -38,23 +38,27 @@ RUN mkdir -p /app/ComfyUI/models/checkpoints \
38
  /app/ComfyUI/input \
39
  /app/workflows
40
 
41
- # Copy workflow file
42
- COPY workflows/Workflow_12_11.json /app/workflows/
 
 
 
 
43
 
44
  # Copy default input images
45
- COPY ComfyUI/input/*.jpg /app/ComfyUI/input/
46
 
47
  # Install Python dependencies
48
- COPY requirements.txt .
49
  RUN pip3 install --no-cache-dir -r requirements.txt
50
 
51
  # Copy model download script
52
- COPY download_models.py .
53
  RUN python3 download_models.py || true
54
 
55
  # Copy application code
56
- COPY app.py .
57
- COPY start.sh .
58
 
59
  # Make scripts executable
60
  RUN chmod +x /app/start.sh
@@ -63,4 +67,4 @@ RUN chmod +x /app/start.sh
63
  EXPOSE 7860 8188
64
 
65
  # Set the entrypoint
66
- ENTRYPOINT ["/app/start.sh"]
 
38
  /app/ComfyUI/input \
39
  /app/workflows
40
 
41
+ # First create all necessary directories
42
+ RUN mkdir -p /app/workflows
43
+
44
+ # Copy workflow files
45
+ COPY ./workflows/Workflow_12_11.json /app/workflows/
46
+ COPY ./workflows/Workflow_Test.json /app/workflows/
47
 
48
  # Copy default input images
49
+ COPY ./ComfyUI/input/*.jpg /app/ComfyUI/input/
50
 
51
  # Install Python dependencies
52
+ COPY ./requirements.txt .
53
  RUN pip3 install --no-cache-dir -r requirements.txt
54
 
55
  # Copy model download script
56
+ COPY ./download_models.py .
57
  RUN python3 download_models.py || true
58
 
59
  # Copy application code
60
+ COPY ./app.py .
61
+ COPY ./start.sh .
62
 
63
  # Make scripts executable
64
  RUN chmod +x /app/start.sh
 
67
  EXPOSE 7860 8188
68
 
69
  # Set the entrypoint
70
+ ENTRYPOINT ["/app/start.sh"]