ExtremePrecipit / Dockerfile
ncsdecoopman's picture
Déploiement Docker depuis workflow (structure corrigée)
0ab0788
raw
history blame contribute delete
513 Bytes
FROM python:3.11-slim
RUN apt-get update && apt-get install -y \
build-essential \
git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
COPY download_data.py .
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install huggingface_hub
RUN rm -rf ~/.cache/huggingface/hub && \
python download_data.py
COPY . .
EXPOSE 7860
ENV MPLCONFIGDIR=/tmp/matplotlib
ENV PYTHONPATH=/app
CMD ["streamlit", "run", "main.py", "--server.port=7860", "--server.address=0.0.0.0"]