mohamedtsou commited on
Commit
8a346c2
·
verified ·
1 Parent(s): 630597d

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Image Python légère
2
+ FROM python:3.9-slim
3
+
4
+ # Définir le répertoire de travail
5
+ WORKDIR /app
6
+
7
+ # Copier les fichiers de dépendances d'abord (pour le cache Docker)
8
+ COPY requirements.txt .
9
+
10
+ # Installer les dépendances
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Copier tous les fichiers
14
+ COPY app.py .
15
+ COPY view.html .
16
+ COPY SubTool-0-3517926.OBJ .
17
+
18
+ # Exposer le port (Hugging Face utilise 7860)
19
+ EXPOSE 7860
20
+
21
+ # Lancer l'application
22
+ CMD ["python", "app.py"]