File size: 599 Bytes
f912478
 
 
 
 
 
02123fb
7d2ad40
f912478
0a28e6f
74f81e9
c52dfc7
 
 
 
 
 
 
f912478
 
 
 
 
0443827
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
FROM ubuntu:latest

# Set the working directory
WORKDIR /app

# Update the package lists and install necessary packages
  RUN chmod -R 777 . \
    && apt-get update \
    && apt-get install -y python3 python3-pip \
    && apt-get install -y python3.10-venv \
    && pip3 install virtualenv

# Create and activate a virtual environment
RUN python3 -m venv venv
ENV PATH="/app/venv/bin:$PATH"

# Install MLflow within the virtual environment
RUN pip install mlflow

# Expose the container port
EXPOSE 5000

# Run MLflow UI when the container starts
CMD ["mlflow", "ui", "-h", "0.0.0.0", "-p", "5000"]