Update Dockerfile
Browse files- Dockerfile +3 -8
Dockerfile
CHANGED
@@ -1,26 +1,21 @@
|
|
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
|
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"]
|
|
|
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 |
+
# Clone dans sous-répertoire explicite
|
9 |
+
RUN git clone --depth 1 https://github.com/comfyanonymous/ComfyUI.git ComfyUI
|
10 |
|
|
|
11 |
COPY requirements.txt .
|
12 |
RUN pip install --no-cache-dir -r requirements.txt
|
13 |
|
|
|
14 |
COPY download_models.py .
|
15 |
RUN python download_models.py
|
16 |
|
|
|
17 |
COPY app.py .
|
18 |
COPY workflow_api.json .
|
19 |
|
20 |
EXPOSE 7860
|
21 |
+
CMD ["python", "app.py"]
|
|