fix: add China mirror for Alpine and pip

This commit is contained in:
TTS Service
2026-03-27 13:57:48 +08:00
parent b2fca4b4c8
commit 9aef399fd7

View File

@@ -1,12 +1,15 @@
FROM python:3.11-alpine
# 安装 ffmpegalpine 版很小)
# 配置 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/ .