Adarka commited on
Commit
abb0aca
·
verified ·
1 Parent(s): 87f94a5

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Installer dépendances système (facultatif)
4
+ RUN apt-get update && apt-get install -y git
5
+
6
+ # Créer le dossier de travail
7
+ WORKDIR /app
8
+
9
+ # Copier les fichiers
10
+ COPY . .
11
+
12
+ # Installer les dépendances Python
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ # Lancer FastAPI via Uvicorn
16
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]