MoritzLaurer commited on
Commit
18e66f1
·
verified ·
1 Parent(s): 497d05e

Update Docker

Browse files
Files changed (1) hide show
  1. Docker +5 -3
Docker CHANGED
@@ -10,6 +10,10 @@ RUN pip install mlflow
10
  # Expose the default MLflow port
11
  EXPOSE 7860
12
 
 
 
 
 
13
  # Ensure the /data directory exists
14
  RUN mkdir -p /data/mlruns
15
 
@@ -17,6 +21,4 @@ RUN mkdir -p /data/mlruns
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"]
 
10
  # Expose the default MLflow port
11
  EXPOSE 7860
12
 
13
+ COPY start_server.sh .
14
+
15
+ RUN chmod +x start_server.sh
16
+
17
  # Ensure the /data directory exists
18
  RUN mkdir -p /data/mlruns
19
 
 
21
  ENV MLFLOW_TRACKING_URI=file:///data/mlruns
22
 
23
  # Command to run the MLflow server
24
+ CMD ["./app.sh"]