Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +3 -5
Dockerfile
CHANGED
|
@@ -1,10 +1,8 @@
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
| 3 |
-
|
| 4 |
-
RUN pip install --no-cache-dir mlflow
|
| 5 |
|
| 6 |
-
# Exposition du port requis par HF
|
| 7 |
EXPOSE 7860
|
| 8 |
|
| 9 |
-
# Lancement
|
| 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"]
|