Spaces:
Paused
Paused
Commit
•
a8ac603
1
Parent(s):
e8ed587
Update Docker
Browse files
Docker
CHANGED
@@ -1 +1,22 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use a lightweight Python image
|
2 |
+
FROM python:3.9-slim
|
3 |
+
|
4 |
+
# Set the working directory
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
# Install MLflow
|
8 |
+
RUN pip install mlflow
|
9 |
+
|
10 |
+
# Expose the default MLflow port
|
11 |
+
EXPOSE 7860
|
12 |
+
|
13 |
+
# Ensure the /data directory exists
|
14 |
+
RUN mkdir -p /data/mlruns
|
15 |
+
|
16 |
+
# Set environment variables
|
17 |
+
ENV MLFLOW_TRACKING_URI=file:///data/mlruns
|
18 |
+
|
19 |
+
# Command to run the MLflow server
|
20 |
+
CMD ["mlflow", "server", "--host", "0.0.0.0", "--port", "7860", \
|
21 |
+
"--backend-store-uri", "sqlite:////data/mlflow.db", \
|
22 |
+
"--default-artifact-root", "/data/mlruns"]
|