From 27398cc556b02b5b81d6495ade28112038936fcc Mon Sep 17 00:00:00 2001 From: zj1123581321 Date: Fri, 16 Oct 2026 11:33:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=20Dockerfile=20=E7=9A=84=20BBDown=20?= =?UTF-8?q?=E6=9D=A5=E6=BA=90=E6=94=B9=E4=B8=BA=E5=8F=AF=E8=A6=86=E7=9B=96?= =?UTF-8?q?=20ARG=EF=BC=8C=E9=BB=98=E8=AE=A4=E6=8C=87=E5=90=91=20ACR=20bbd?= =?UTF-8?q?own-base=20=E5=89=AF=E6=9C=AC=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 干净 runner 无法匿名拉取私有 ghcr 包,ARG 默认值让已登录 ACR 的构建链路可复现。 Co-authored-by: Cursor Agent-Executor: cursor Agent-Model: cursor-grok-4.6-high Agent-Effort: unknown Dispatch-Id: dlg-20261016-032056-c30c38 Task-Id: VideoTranscriptAPI-20261015-11 --- docker/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index ce272043..21bdab31 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,5 +1,9 @@ FROM python:3.11-slim +# BBDown 二进制来自项目私有镜像的已知好版本副本(ACR bbdown-base tag)。 +# 开源用户如需自建须提供含 BBDown 的等效镜像(存量限制,非本卡引入)。 +ARG BBDOWN_FROM=crpi-0vsre5argteykh9m.cn-guangzhou.personal.cr.aliyuncs.com/zlx-personal/video-transcript-api:bbdown-base + # ============================================================ # 1. ffmpeg: copy static binaries from well-maintained image # (avoids slow apt-get with 200+ dependencies) @@ -27,7 +31,7 @@ ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2 # To update BBDown version, rebuild from source: # docker build --build-arg BBDOWN_FROM_SOURCE=1 ... # ============================================================ -COPY --from=ghcr.io/zj1123581321/video-transcript-api:latest /app/BBDown /app/BBDown +COPY --from=${BBDOWN_FROM} /app/BBDown /app/BBDown # ============================================================ # 4. Python package manager: uv