20 lines
566 B
Text
20 lines
566 B
Text
FROM python:3.11-slim
|
|
|
|
RUN apt-get update && \
|
|
apt-get install --no-install-recommends -y curl ffmpeg && \
|
|
apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
RUN mkdir -p voices config
|
|
|
|
RUN --mount=type=cache,target=/root/.cache/pip pip install piper-tts==1.2.0 pyyaml fastapi uvicorn loguru numpy\<2
|
|
|
|
|
|
COPY speech.py openedai.py say.py *.sh README.md LICENSE /app/
|
|
COPY config/voice_to_speaker.default.yaml config/pre_process_map.default.yaml /app/config/
|
|
|
|
ENV TTS_HOME=voices
|
|
ENV HF_HOME=voices
|
|
ENV OPENEDAI_LOG_LEVEL=INFO
|
|
|
|
CMD bash startup.min.sh
|