From 9aef399fd7385a552c5c12b459193ed3cb5a52d4 Mon Sep 17 00:00:00 2001 From: TTS Service Date: Fri, 27 Mar 2026 13:57:48 +0800 Subject: [PATCH] fix: add China mirror for Alpine and pip --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 75b209b..b8c8f00 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,15 @@ FROM python:3.11-alpine -# 安装 ffmpeg(alpine 版很小) +# 配置 Alpine 国内镜像源 +RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories + +# 安装 ffmpeg RUN apk add --no-cache ffmpeg WORKDIR /app COPY requirements.txt . -RUN pip install --no-cache-dir -r requirements.txt +RUN pip install --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt COPY app/ .