Spaces:
Running
Running
Update dockerfile
Browse files- 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 |
-
#
|
| 10 |
-
|
|
|
|
|
|
|
|
|
| 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"]
|