File size: 435 Bytes
a8ac603
 
 
 
 
 
 
 
 
 
 
 
18e66f1
 
 
 
a8ac603
 
 
 
 
 
 
5ca6ced
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Use a lightweight Python image
FROM python:3.9-slim

# Set the working directory
WORKDIR /app

# Install MLflow
RUN pip install mlflow

# Expose the default MLflow port
EXPOSE 7860

COPY start_server.sh .

RUN chmod +x start_server.sh

# Ensure the /data directory exists
RUN mkdir -p /data/mlruns

# Set environment variables
ENV MLFLOW_TRACKING_URI=file:///data/mlruns

# Command to run the MLflow server
CMD ["./start_server.sh"]