Spaces:
Sleeping
Sleeping
Download Dockerfile from bilalRHCH/arabic-tts-worker-1: direct link, hf CLI and curl.
- Browser
- Download file 617 Bytes
-
https://huggingface.co/spaces/bilalRHCH/arabic-tts-worker-1/resolve/2a3d16dbaa635e96a2d6f021ff38fa96939959df/Dockerfile
- Command line
-
hf download hf://spaces/bilalRHCH/arabic-tts-worker-1@2a3d16dbaa635e96a2d6f021ff38fa96939959df/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/bilalRHCH/arabic-tts-worker-1/resolve/2a3d16dbaa635e96a2d6f021ff38fa96939959df/Dockerfile
617 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Install libsndfile for python soundfile module | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| libsndfile1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Ensure FastAPI / web dependencies are installed | |
| RUN pip install --no-cache-dir fastapi uvicorn pydantic python-multipart soundfile | |
| COPY . . | |
| # HuggingFace Spaces requires port 7860 | |
| EXPOSE 7860 | |
| # We use server:app instead of app:app because we created server.py | |
| CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"] | |