Spaces:
Sleeping
Sleeping
| FROM python:3.11-slim | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| ffmpeg libsndfile1 ca-certificates && \ | |
| rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Writable caches so model download doesn't hit /.cache permission errors | |
| ENV HF_HOME=/data/hf | |
| ENV HUGGINGFACE_HUB_CACHE=/data/hf | |
| ENV TRANSFORMERS_CACHE=/data/hf | |
| RUN mkdir -p /data/hf && chmod -R 777 /data | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY app.py . | |
| ENV PORT=7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |