File size: 795 Bytes
d915aa5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# ============================
# 1. Image de base Python
# ============================
FROM python:3.10-slim

# ============================
# 2. Dossier de travail
# ============================
WORKDIR /app

# ============================
# 3. Copier requirements.txt
# ============================
COPY requirements.txt .

# ============================
# 4. Installer les dépendances Python
# ============================
RUN pip install --no-cache-dir -r requirements.txt

# ============================
# 5. Copier ton application
# ============================
COPY app.py .

# ============================
# 6. Exposer le port Gradio
# ============================
EXPOSE 7860

# ============================
# 7. Lancer ton app
# ============================
CMD ["python", "app.py"]