Create Dockerfile
Browse files- Dockerfile +20 -0
Dockerfile
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
|
19 |
+
EXPOSE 7860
|
20 |
+
CMD ["python", "app.py"]
|