Spaces:
Runtime error
Runtime error
| # Base image | |
| FROM python:3.10-slim | |
| # Install system dependencies\ nRUN apt-get update && \ | |
| RUN apt-get update && \ | |
| apt-get install -y git && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Copy and install Python dependencies | |
| COPY requirements.txt /app/requirements.txt | |
| RUN pip install --no-cache-dir -r /app/requirements.txt | |
| # Set working directory | |
| WORKDIR /app | |
| COPY app.py /app/app.py | |
| # Expose port (Gradio/Streamlit default) | |
| EXPOSE 7860 | |
| # Launch | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |