-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (18 loc) · 715 Bytes
/
Copy pathDockerfile
File metadata and controls
25 lines (18 loc) · 715 Bytes
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
# On prend la version de Python
FROM python:3.14-slim
# On crée le dossier principal dans le mini-ordinateur
WORKDIR /app
# On copie le fichier des dépendances en premier
COPY requirements.txt .
# On installe toutes tes bibliothèques (Pandas, Streamlit, Scikit-learn, etc.)
RUN pip install --no-cache-dir -r requirements.txt
# On copie les éléments vitaux de l'application
COPY app.py .
COPY src/ ./src/
COPY models/ ./models/
# Si l'app a besoin de lire le CSV pour afficher des stats, on décommente la ligne :
# COPY data/cleaned/dvf_idf_cleaned.csv ./data/cleaned/
# On ouvre la porte 8501
EXPOSE 8501
# La commande pour lancer le site
CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0"]