KJ24 commited on
Commit
b9aed3c
·
verified ·
1 Parent(s): cce0c55

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
4
+ RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
5
+
6
+ # Créer dossier de travail
7
+ WORKDIR /app
8
+
9
+ # Copier les fichiers
10
+ COPY requirements.txt .
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ COPY . .
14
+
15
+ # Lancer l'API
16
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]