File size: 400 Bytes
70ca2a3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Utiliser Python 3.11 slim
FROM python:3.11-slim

WORKDIR /app

# Copier le code et la base SQLite
COPY requirements.txt .
COPY app ./app

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

# Exposer port (Hugging Face Spaces utilise 7860 par d�faut)
EXPOSE 7860

# Lancer FastAPI
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]