Spaces:
Sleeping
Sleeping
| # Use Python 3.11 as specified in your README for better compatibility with financial libraries | |
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install system dependencies required for building Python packages | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| curl \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements first to leverage Docker cache | |
| COPY requirements.txt . | |
| # Install Python dependencies | |
| RUN pip3 install --no-cache-dir -r requirements.txt | |
| # COPY ALL FILES (This fixes the missing Main_Page.py and pages/ issue) | |
| COPY . . | |
| # Expose the default Streamlit port | |
| EXPOSE 8501 | |
| # Healthcheck to ensure the app is running | |
| HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health | |
| # Point to the correct main file: Main_Page.py | |
| ENTRYPOINT ["streamlit", "run", "Main_Page.py", "--server.port=8501", "--server.address=0.0.0.0"] |