Browse Source

revert(deploy): 恢复 Dockerfile 阿里云 apt/pip 镜像源

撤销 Gogs 端 CI/CD 测试提交(f62dd30/3405a19/bdb9b21)对镜像源的移除:
恢复 deps 与 runtime 两段的 sed apt 源替换,以及 faster-whisper 的 pip 阿里云源。

Co-Authored-By: Claude <noreply@anthropic.com>
lkatzey 3 days ago
parent
commit
7592fee901
1 changed files with 4 additions and 4 deletions
  1. 4 4
      Dockerfile

+ 4 - 4
Dockerfile

@@ -2,7 +2,7 @@
 FROM node:22-bookworm AS deps
 
 # 使用阿里云镜像源
-# RUN sed -i 's|deb.debian.org|mirrors.aliyun.com|g' /etc/apt/sources.list.d/debian.sources
+RUN sed -i 's|deb.debian.org|mirrors.aliyun.com|g' /etc/apt/sources.list.d/debian.sources
 
 RUN corepack enable && corepack prepare pnpm@10.24.0 --activate
 
@@ -10,7 +10,7 @@ RUN apt-get update && \
     apt-get install -y --no-install-recommends ffmpeg python3 python3-pip && \
     rm -rf /var/lib/apt/lists/*
 
-RUN pip3 install --break-system-packages faster-whisper
+RUN pip3 install --break-system-packages -i https://mirrors.aliyun.com/pypi/simple/ faster-whisper
 
 WORKDIR /app
 
@@ -35,7 +35,7 @@ RUN pnpm build
 # Stage 3: Runtime — fresh prod install with hoisted layout
 FROM node:22-bookworm-slim AS runtime
 
-# RUN sed -i 's|deb.debian.org|mirrors.aliyun.com|g' /etc/apt/sources.list.d/debian.sources
+RUN sed -i 's|deb.debian.org|mirrors.aliyun.com|g' /etc/apt/sources.list.d/debian.sources
 
 RUN corepack enable && corepack prepare pnpm@10.24.0 --activate
 
@@ -47,7 +47,7 @@ RUN apt-get update && \
       libgbm1 libpango-1.0-0 libcairo2 libasound2 && \
     rm -rf /var/lib/apt/lists/*
 
-RUN pip3 install --break-system-packages faster-whisper
+RUN pip3 install --break-system-packages -i https://mirrors.aliyun.com/pypi/simple/ faster-whisper
 
 WORKDIR /app