generated from NeonGeckoCom/template-tts-plugin
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
20 lines (16 loc) · 894 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.9-slim AS compile-image
COPY . /tmp/neon-tts-plugin-coqui
RUN pip install wheel && \
pip install --user --no-cache-dir \
/tmp/neon-tts-plugin-coqui/[docker] --extra-index-url https://download.pytorch.org/whl/cpu
# Copy built packages to a clean image to exclude build-time extras from final image
FROM python:3.9-slim AS build-image
COPY --from=compile-image /root/.local /root/.local
ENV PATH=/root/.local/bin:$PATH
RUN apt-get update && \
apt-get install -y --no-install-recommends \
espeak-ng
ENTRYPOINT ovos-tts-server --engine coqui --gradio \
--title "🐸💬 - Neon AI Coqui AI TTS Plugin" \
--description "🐸💬 - a deep learning toolkit for Text-to-Speech, battle-tested in research and production" \
--info "more info at [Neon Coqui TTS Plugin](https://github.com/NeonGeckoCom/neon-tts-plugin-coqui), [Coqui TTS](https://github.com/coqui-ai/TTS)"