Create DockerFile

#1
by lea97338 - opened
Files changed (1) hide show
  1. DockerFile +34 -0
DockerFile ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ============================
2
+ # 1. Image de base Python
3
+ # ============================
4
+ FROM python:3.10-slim
5
+
6
+ # ============================
7
+ # 2. Dossier de travail
8
+ # ============================
9
+ WORKDIR /app
10
+
11
+ # ============================
12
+ # 3. Copier requirements.txt
13
+ # ============================
14
+ COPY requirements.txt .
15
+
16
+ # ============================
17
+ # 4. Installer les dépendances Python
18
+ # ============================
19
+ RUN pip install --no-cache-dir -r requirements.txt
20
+
21
+ # ============================
22
+ # 5. Copier ton application
23
+ # ============================
24
+ COPY app.py .
25
+
26
+ # ============================
27
+ # 6. Exposer le port Gradio
28
+ # ============================
29
+ EXPOSE 7860
30
+
31
+ # ============================
32
+ # 7. Lancer ton app
33
+ # ============================
34
+ CMD ["python", "app.py"]