File size: 574 Bytes
11133f2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM python:3.10-slim

# Évite les problèmes d'affichage logs
ENV PYTHONUNBUFFERED=1

# Installer dépendances système (important pour torch & pandas)
RUN apt-get update && apt-get install -y \

    git \
    build-essential \
    && rm -rf /var/lib/apt/lists/*

# Dossier de travail
WORKDIR /app

# Copier fichiers
COPY . /app

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

# Port utilisé par Hugging Face
EXPOSE 7860

# Lancer ton app
CMD ["python", "app.py"]