Spaces:
Sleeping
Sleeping
| 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"] | |