-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from matatonic/dev
0.13.0
- Loading branch information
Showing
20 changed files
with
491 additions
and
160 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
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,23 +1,28 @@ | ||
FROM python:3.11-slim | ||
|
||
RUN apt-get update && \ | ||
apt-get install --no-install-recommends -y curl ffmpeg git && \ | ||
apt-get clean && rm -rf /var/lib/apt/lists/* | ||
ARG TARGETPLATFORM | ||
RUN apt-get update && apt-get install --no-install-recommends -y curl ffmpeg | ||
RUN if [ "$TARGETPLATFORM" != "linux/amd64" ]; then apt-get install --no-install-recommends -y build-essential ; fi | ||
RUN if [ "$TARGETPLATFORM" != "linux/amd64" ]; then curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y ; fi | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /app | ||
RUN mkdir -p voices config | ||
|
||
COPY requirements.txt /app/ | ||
ARG USE_ROCM | ||
ENV USE_ROCM=${USE_ROCM} | ||
|
||
COPY requirements*.txt /app/ | ||
RUN if [ "${USE_ROCM}" = "1" ]; then mv /app/requirements-rocm.txt /app/requirements.txt; fi | ||
RUN --mount=type=cache,target=/root/.cache/pip pip install -r requirements.txt | ||
|
||
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/ | ||
COPY speech.py openedai.py say.py *.sh *.default.yaml README.md LICENSE /app/ | ||
|
||
ARG PRELOAD_MODEL | ||
ENV PRELOAD_MODEL=${PRELOAD_MODEL} | ||
ENV TTS_HOME=voices | ||
ENV HF_HOME=voices | ||
ENV OPENEDAI_LOG_LEVEL=INFO | ||
ENV COQUI_TOS_AGREED=1 | ||
|
||
CMD bash startup.sh |
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,20 +1,20 @@ | ||
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/* | ||
ARG TARGETPLATFORM | ||
RUN apt-get update && apt-get install --no-install-recommends -y curl ffmpeg | ||
RUN if [ "$TARGETPLATFORM" != "linux/amd64" ]; then apt-get install --no-install-recommends -y build-essential ; fi | ||
RUN if [ "$TARGETPLATFORM" != "linux/amd64" ]; then curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y ; fi | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
RUN 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/ | ||
COPY requirements*.txt /app/ | ||
RUN --mount=type=cache,target=/root/.cache/pip pip install -r requirements-min.txt | ||
COPY speech.py openedai.py say.py *.sh *.default.yaml README.md LICENSE /app/ | ||
|
||
ENV TTS_HOME=voices | ||
ENV HF_HOME=voices | ||
ENV OPENEDAI_LOG_LEVEL=INFO | ||
|
||
CMD bash startup.min.sh |
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
Oops, something went wrong.