Spaces:
Sleeping
Sleeping
| FROM python:3.13.5-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| curl \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements and install Python packages | |
| COPY requirements.txt ./ | |
| RUN pip3 install -r requirements.txt | |
| # Copy application files | |
| COPY src/ ./src/ | |
| COPY data/ ./data/ | |
| COPY data_questions/ ./data_questions/ | |
| COPY models/ ./models/ | |
| COPY dataset_info/ ./dataset_info/ | |
| COPY .streamlit/ ./.streamlit/ | |
| # Expose port 7860 for HF Spaces | |
| EXPOSE 7860 | |
| # Run Streamlit with explicit port setting | |
| CMD ["streamlit", "run", "src/streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0"] | |