generated from NeonGeckoCom/template-tts-plugin
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Docker to include Gradio web UI (#102)
* Adds docker dependencies with ovos-tts-server Simplifies Dockerfile and adds args to start gradio server * Revert Dockerfile changes to keep reduced image size * Add `--no-install-cache-dir` and `--no-install-recommends` flags
- Loading branch information
1 parent
8c48260
commit 76faf3e
Showing
5 changed files
with
32 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.env | ||
.git | ||
.git | ||
Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
FROM python:3.9-slim-bullseye AS compile-image | ||
|
||
RUN apt-get update -y && apt-get install -y python3-pip git | ||
|
||
RUN pip3 install --user torch --no-cache-dir --extra-index-url https://download.pytorch.org/whl/cpu | ||
FROM python:3.9-slim AS compile-image | ||
|
||
COPY . /tmp/neon-tts-plugin-coqui | ||
RUN pip3 install --user /tmp/neon-tts-plugin-coqui --no-cache-dir | ||
|
||
RUN pip3 install --user git+https://github.com/OpenVoiceOS/ovos-tts-server@b9ee84c48ab6ab5655fffa032359752ab10d2c9d | ||
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 | ||
|
||
FROM python:3.9-slim-bullseye AS build-image | ||
|
||
RUN apt-get update -y && apt-get install -y --no-install-recommends espeak-ng | ||
# 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 | ||
|
||
ENTRYPOINT ovos-tts-server --engine coqui | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
espeak-ng | ||
|
||
ENTRYPOINT ovos-tts-server --engine coqui --gradio \ | ||
--title "🐸💬 - NeonAI 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)" \ | ||
--badge "https://visitor-badge-reloaded.herokuapp.com/badge?page_id=neongeckocom.neon-tts-plugin-coqui" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ovos-tts-server>=0.0.3a5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters