File size: 469 Bytes
a8ac603
 
 
4e98c18
 
 
 
a8ac603
 
 
 
 
 
4e98c18
18e66f1
 
4e98c18
18e66f1
 
4e98c18
 
a8ac603
4e98c18
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 environment variables
ENV PYTHONUNBUFFERED=1 \
    SHELL=/bin/bash

# Set the working directory
WORKDIR /app

# Install MLflow
RUN pip install mlflow

# Copy the start_server.sh script into the container
COPY start_server.sh .

# Ensure the script is executable
RUN chmod +x start_server.sh

# Expose the default MLflow port
EXPOSE 7860

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