Contenerized text-to-speech engine based on Coqui's TTS with web API
Jacek Kowalski
2024-08-01 55b8831d18635e59bb667080ebbbd8244d36d80a
commit | author | age
564abd 1 FROM python:3.11
JK 2
3 ADD requirements.txt .
4 RUN pip install --no-cache-dir -r requirements.txt
5 RUN apt update && apt install -y espeak-ng && apt clean && rm -rf /var/lib/apt/lists/*
6
7 RUN addgroup --gid 200 --system app && adduser --uid 200 --gid 200 --home /app app
8 WORKDIR /app
9 USER app
10
11 COPY --chown=200:200 src/config.py src/download.py src/
12 RUN python src/download.py
13
14 EXPOSE 8000
15 COPY --chown=200:200 src src
16 CMD ["python", "src/run.py"]