Update Dockerfile
Browse files- Dockerfile +6 -4
Dockerfile
CHANGED
@@ -1,24 +1,26 @@
|
|
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 |
-
#
|
9 |
RUN git clone https://github.com/comfyanonymous/ComfyUI.git
|
10 |
|
11 |
-
#
|
12 |
COPY requirements.txt .
|
13 |
RUN pip install --no-cache-dir -r requirements.txt
|
14 |
|
15 |
-
#
|
16 |
COPY download_models.py .
|
17 |
RUN python download_models.py
|
18 |
|
19 |
-
#
|
20 |
COPY app.py .
|
21 |
COPY workflow_api.json .
|
22 |
|
23 |
EXPOSE 7860
|
|
|
24 |
CMD ["python", "app.py"]
|
|
|
1 |
FROM python:3.10-slim
|
2 |
+
|
3 |
WORKDIR /app
|
4 |
|
5 |
RUN apt-get update && \
|
6 |
apt-get install -y git wget && \
|
7 |
rm -rf /var/lib/apt/lists/*
|
8 |
|
9 |
+
# Clone dans /app/ComfyUI
|
10 |
RUN git clone https://github.com/comfyanonymous/ComfyUI.git
|
11 |
|
12 |
+
# Python deps
|
13 |
COPY requirements.txt .
|
14 |
RUN pip install --no-cache-dir -r requirements.txt
|
15 |
|
16 |
+
# Download de modèles
|
17 |
COPY download_models.py .
|
18 |
RUN python download_models.py
|
19 |
|
20 |
+
# Copie de nos fichiers custom
|
21 |
COPY app.py .
|
22 |
COPY workflow_api.json .
|
23 |
|
24 |
EXPOSE 7860
|
25 |
+
|
26 |
CMD ["python", "app.py"]
|