FROM continuumio/miniconda3 RUN apt-get update -y RUN apt-get install nano unzip curl -y # THIS IS SPECIFIC TO HUGGINFACE RUN useradd -m -u 1000 user USER user ENV HOME=/home/user \ PATH=/home/user/.local/bin:$PATH # We set working directory to $HOME/app (<=> /home/user/app) WORKDIR $HOME/app # Install basic dependencies RUN pip install boto3 pandas gunicorn mlflow streamlit scikit-learn matplotlib seaborn plotly openpyxl COPY --chown=user . $HOME/app COPY requirements.txt /dependencies/requirements.txt RUN pip install -r /dependencies/requirements.txt COPY . $HOME/app # Exposer les ports pour Streamlit et MLflow EXPOSE 7860 5000 # Lancer Streamlit et le serveur de suivi MLflow CMD ["sh", "-c", "streamlit run app.py --server.port 7860 --server.address 0.0.0.0 & mlflow server --host 0.0.0.0 --port 5000"]