Download Dockerfile from ranaspark/voice: direct link, hf CLI and curl.
- Browser
- Download file 577 Bytes
-
https://huggingface.co/spaces/ranaspark/voice/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ranaspark/voice/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ranaspark/voice/resolve/main/Dockerfile
577 Bytes
| FROM python:3.11-slim | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| ffmpeg \ | |
| tesseract-ocr \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| build-essential \ | |
| curl \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Copy python dependencies and install | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application code and files | |
| COPY pipeline/ ./pipeline/ | |
| COPY app.py ./ | |
| EXPOSE 7860 | |
| # Run uvicorn on port 7860 (required by HF Spaces) | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |