Download Dockerfile from 99i/t2: direct link, hf CLI and curl.
- Browser
- Download file 371 Bytes
-
https://huggingface.co/spaces/99i/t2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/99i/t2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/99i/t2/resolve/main/Dockerfile
371 Bytes
| FROM python:3.9-slim | |
| # 安装ffmpeg相关依赖 | |
| RUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| RUN mkdir -p audio_files | |
| RUN chmod 777 audio_files | |
| ENV TTS_HOST=${TTS_HOST} | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |