TTS Default Enable

This commit is contained in:
binary-husky
2024-05-30 14:27:18 +00:00
parent beda56abb0
commit 80c4281888
2 changed files with 14 additions and 10 deletions

View File

@@ -12,15 +12,16 @@ RUN echo '[global]' > /etc/pip.conf && \
echo 'trusted-host = mirrors.aliyun.com' >> /etc/pip.conf
# 语音输出功能以下两行第一行更换阿里源第二行安装ffmpeg都可以删除
RUN UBUNTU_VERSION=$(awk -F= '/^VERSION_CODENAME=/{print $2}' /etc/os-release); echo "deb https://mirrors.aliyun.com/debian/ $UBUNTU_VERSION main non-free contrib" > /etc/apt/sources.list; apt-get update
RUN apt-get install ffmpeg -y
# 进入工作路径(必要)
WORKDIR /gpt
# TTS相关功能
RUN apt update && apt install ffmpeg -y
# 安装大部分依赖利用Docker缓存加速以后的构建 (以下三行,可以删除)
# 安装大部分依赖利用Docker缓存加速以后的构建 (以下两行,可以删除)
COPY requirements.txt ./
RUN pip3 install -r requirements.txt