MLFlow-Server / Dockerfile
SaumyaBhatt's picture
Update Dockerfile
734b0e5 verified
Raw History Blame Contribute Delete
599 Bytes
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"]