soradata commited on
Commit
26ecce4
·
verified ·
1 Parent(s): 1ea58ae

Update dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -1,10 +1,10 @@
1
  FROM python:3.10-slim
2
 
3
- # Installation de MLflow
4
  RUN pip install --no-cache-dir mlflow
5
 
6
- # Exposition du port par défaut de MLflow
7
  EXPOSE 7860
8
 
9
- # Commande pour lancer le serveur MLflow compatible avec l'infra Hugging Face
10
- CMD ["mlflow", "server", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
1
  FROM python:3.10-slim
2
 
 
3
  RUN pip install --no-cache-dir mlflow
4
 
 
5
  EXPOSE 7860
6
 
7
+ # Cette variable d'environnement indique au serveur de faire confiance aux proxies inversés comme celui de HF
8
+ ENV PORT=7860
9
+
10
+ CMD ["mlflow", "server", "--host", "0.0.0.0", "--port", "7860", "--dev-via-localhost"]