Inspecta commited on
Commit
b26e4d5
·
verified ·
1 Parent(s): f350f16

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -7
Dockerfile CHANGED
@@ -1,18 +1,22 @@
1
  FROM python:3.10-slim
2
  WORKDIR /app
3
 
4
- RUN apt-get update && apt-get install -y git wget
5
- COPY requirements.txt .
6
- RUN pip install -r requirements.txt
 
 
 
7
 
8
- # clone ComfyUI
9
- RUN git clone https://github.com/comfyanonymous/ComfyUI.git
 
10
 
11
- # download weights
12
  COPY download_models.py .
13
  RUN python download_models.py
14
 
15
- # copy our code
16
  COPY app.py .
17
  COPY workflow_api.json .
18
 
 
1
  FROM python:3.10-slim
2
  WORKDIR /app
3
 
4
+ RUN apt-get update && \
5
+ apt-get install -y git wget && \
6
+ rm -rf /var/lib/apt/lists/*
7
+
8
+ # 1. clone ComfyUI (force into /app/ComfyUI)
9
+ RUN git clone https://github.com/comfyanonymous/ComfyUI.git ComfyUI
10
 
11
+ # 2. Python deps
12
+ COPY requirements.txt .
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
 
15
+ # 3. model download
16
  COPY download_models.py .
17
  RUN python download_models.py
18
 
19
+ # 4. copy our wrappers
20
  COPY app.py .
21
  COPY workflow_api.json .
22