File size: 651 Bytes
464a486
 
6205615
 
 
 
22447f4
 
 
464a486
22447f4
464a486
 
 
 
 
 
04988e6
464a486
22447f4
 
464a486
22447f4
464a486
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM python:3.10-slim

RUN apt-get update && apt-get install -y \
    git \
    && rm -rf /var/lib/apt/lists/*

RUN useradd -m -u 1000 appuser
USER appuser
ENV PATH="/home/appuser/.local/bin:$PATH"

WORKDIR /app

RUN git clone https://github.com/myshell-ai/MeloTTS.git

WORKDIR /app/MeloTTS
RUN pip install --no-cache-dir -e .
RUN python -m unidic download
RUN python -c "import nltk; nltk.download('averaged_perceptron_tagger_eng')"

WORKDIR /app
COPY --chown=appuser ./requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
COPY --chown=appuser . /app

CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]