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"]