Spaces:
Paused
Paused
Download Dockerfile from wave101828228/Pdf: direct link, hf CLI and curl.
- Browser
- Download file 737 Bytes
-
https://huggingface.co/spaces/wave101828228/Pdf/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/wave101828228/Pdf/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/wave101828228/Pdf/resolve/main/Dockerfile
737 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Download & extract model Matcha (English, kualitas tertinggi) | |
| RUN curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/matcha-icefall-en_US-ljspeech.tar.bz2 \ | |
| && tar xjf matcha-icefall-en_US-ljspeech.tar.bz2 \ | |
| && rm matcha-icefall-en_US-ljspeech.tar.bz2 | |
| RUN curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/vocoder-models/vocos-22khz-univ.onnx | |
| COPY app.py . | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |