hpp_prediction / Dockerfile
thibautmodrin's picture
ajout des dossiers
b453a62
Raw
History Blame Contribute Delete
630 Bytes
FROM continuumio/miniconda3
RUN apt-get update
RUN apt-get install nano unzip curl -y
# Configuration Hugging Face
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
# Dépendances
RUN pip install \
streamlit==1.41.1 \
pandas==2.2.2 \
joblib==1.4.2 \
scikit-learn==1.6.1 \
boto3 \
gunicorn \
matplotlib \
seaborn \
plotly \
imbalanced-learn
# Copie des fichiers
COPY --chown=user . $HOME/app
# Port Streamlit par défaut sur Hugging Face
EXPOSE 7860
# Lancement de Streamlit
CMD streamlit run --server.port 7860 app.py