Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
| FROM python:3.11-slim | |
| COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ | |
| WORKDIR /app | |
| # Install dependencies first for caching | |
| COPY requirements.txt . | |
| RUN uv pip install --system --no-cache -r requirements.txt | |
| # Copy app files | |
| COPY . . | |
| EXPOSE 7860 | |
| HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health | |
| ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.headless=true"] | |