Download Dockerfile from Djohell/ml_flow: direct link, hf CLI and curl.
- Browser
- Download file 692 Bytes
-
https://huggingface.co/spaces/Djohell/ml_flow/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Djohell/ml_flow/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Djohell/ml_flow/resolve/main/Dockerfile
692 Bytes
| FROM continuumio/miniconda3 | |
| WORKDIR /home/app | |
| # Installation optimisée | |
| RUN apt-get update && apt-get install -y \ | |
| unzip \ | |
| curl \ | |
| && apt-get clean && rm -rf /var/lib/apt/lists/* | |
| # AWS CLI | |
| RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \ | |
| && unzip awscliv2.zip \ | |
| && ./aws/install \ | |
| && rm -rf awscliv2.zip ./aws | |
| # Dépendances Python | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Port fixe pour Hugging Face | |
| EXPOSE 7860 | |
| # Commande de lancement robuste | |
| CMD ["sh", "-c", "mlflow server --host 0.0.0.0 --port 7860 --backend-store-uri $BACKEND_STORE_URI --default-artifact-root $ARTIFACT_STORE_URI"] |