| |
| FROM python:3.11-slim |
|
|
| |
| WORKDIR /app |
|
|
| |
| RUN apt-get update && apt-get install -y git curl && \ |
| curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash && \ |
| apt-get install -y git-lfs && \ |
| git lfs install && \ |
| rm -rf /var/lib/apt/lists/* |
|
|
| |
| RUN git clone https://huggingface.co/KevinAHM/pocket-tts-onnx |
|
|
| |
| WORKDIR /app/pocket-tts-onnx |
|
|
| |
| RUN pip install --upgrade pip |
| RUN pip install -r requirements.txt |
| RUN pip install gradio flask flask-sock soundfile |
| RUN git lfs pull |
| |
| COPY . /app/pocket-tts-onnx/ |
|
|
| |
| EXPOSE 7860 |
|
|
| |
| CMD ["python", "app.py"] |