Spaces:
Sleeping
Sleeping
| # Base image | |
| FROM python:3.11-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy requirements first (for caching) | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir --upgrade pip \ | |
| && pip install --no-cache-dir -r requirements.txt | |
| # Copy app code | |
| COPY . . | |
| # Expose Streamlit default port | |
| EXPOSE 8501 | |
| # Set environment variable for Streamlit | |
| ENV STREAMLIT_SERVER_PORT=8501 | |
| ENV STREAMLIT_SERVER_HEADLESS=true | |
| # Run Streamlit | |
| CMD ["streamlit", "run", "src/streamlit_app.py"] | |