File size: 692 Bytes
d680989 eb2f052 d680989 eb2f052 d680989 eb2f052 d680989 eb2f052 d680989 eb2f052 9c68193 | 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 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"] |