Spaces:
Runtime error
Runtime error
Download Dockerfile from SaumyaBhatt/MLFlow-Server: direct link, hf CLI and curl.
- Browser
- Download file 599 Bytes
-
https://huggingface.co/spaces/SaumyaBhatt/MLFlow-Server/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/SaumyaBhatt/MLFlow-Server/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/SaumyaBhatt/MLFlow-Server/resolve/main/Dockerfile
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"] | |