Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +11 -7
Dockerfile
CHANGED
|
@@ -1,18 +1,22 @@
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
WORKDIR /app
|
| 3 |
|
| 4 |
-
RUN apt-get update &&
|
| 5 |
-
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
-
#
|
| 9 |
-
|
|
|
|
| 10 |
|
| 11 |
-
# download
|
| 12 |
COPY download_models.py .
|
| 13 |
RUN python download_models.py
|
| 14 |
|
| 15 |
-
# copy our
|
| 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 |
|