| | FROM python:3.10-slim |
| |
|
| | WORKDIR /app |
| |
|
| | |
| | RUN apt-get update && apt-get install -y \ |
| | libsndfile1 \ |
| | build-essential \ |
| | g++ \ |
| | git \ |
| | mecab \ |
| | libmecab-dev \ |
| | mecab-ipadic-utf8 \ |
| | && rm -rf /var/lib/apt/lists/* |
| |
|
| | |
| | RUN pip install --no-cache-dir --upgrade pip setuptools wheel |
| |
|
| | |
| | RUN pip install --no-cache-dir "numpy<2.0.0" Cython |
| |
|
| | |
| | COPY requirements.txt . |
| | RUN pip install --no-cache-dir -r requirements.txt |
| |
|
| | |
| | RUN pip install --no-cache-dir git+https://github.com/myshell-ai/MeloTTS.git |
| |
|
| | |
| | RUN python -m unidic download |
| |
|
| | |
| | COPY app.py . |
| |
|
| | |
| | ENV HF_HOME=/app/cache |
| | RUN mkdir -p /app/cache && chmod 777 /app/cache |
| |
|
| | |
| | CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |