diff --git a/Dockerfile b/Dockerfile index 6031e6e..da2a519 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,6 +47,12 @@ RUN python3 -c "import scenedetect; print(f'scenedetect {scenedetect.__version__ # 使用 npmmirror 镜像加速 RUN npm install -g hyperframes --registry=https://registry.npmmirror.com/ --ignore-scripts +# HyperFrames 渲染需要 Chromium/Chrome +# 安装 Chromium(提供系统级共享库依赖) +RUN apk add --no-cache chromium +# 下载 HyperFrames 需要的 headless-shell 浏览器 +RUN npx hyperframes browser ensure + WORKDIR /app # 复制二进制和运行时必需的文件