Spaces:
Configuration error
Configuration error
| # Hugging Face Space - Docker SDK | |
| FROM python:3.10-slim | |
| ENV PIP_NO_CACHE_DIR=1 \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| GRADIO_SERVER_NAME=0.0.0.0 | |
| # System deps (build tools for scientific packages) | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Install Python deps | |
| COPY requirements.txt /app/requirements.txt | |
| RUN pip install --upgrade pip && pip install -r requirements.txt | |
| # Copy app | |
| COPY app.py /app/app.py | |
| EXPOSE 7860 | |
| # HF Spaces passes $PORT; app.py reads it | |
| CMD ["python", "app.py"] | |