soradata commited on
Commit
0a6567c
路
verified 路
1 Parent(s): 53d56f4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -5
Dockerfile CHANGED
@@ -1,10 +1,8 @@
1
  FROM python:3.10-slim
2
 
3
- # Installation de MLflow
4
- RUN pip install --no-cache-dir mlflow
5
 
6
- # Exposition du port requis par HF
7
  EXPOSE 7860
8
 
9
- # Lancement de MLflow en autorisant tous les h么tes (n茅cessaire derri猫re le proxy HF)
10
- CMD ["mlflow", "server", "--host", "0.0.0.0", "--port", "7860", "--allowed-hosts", "*"]
 
1
  FROM python:3.10-slim
2
 
3
+ RUN pip install --no-cache-dir mlflow uvicorn
 
4
 
 
5
  EXPOSE 7860
6
 
7
+ # Lancement via uvicorn en ouvrant les acc猫s proxy et iframe pour HF
8
+ CMD ["mlflow", "server", "--host", "0.0.0.0", "--port", "7860", "--allowed-hosts", "*", "--uvicorn-opts", "--headers=X-Frame-Options:ALLOW-FROM https://huggingface.co"]