common版本更新
This commit is contained in:
@@ -0,0 +1 @@
|
||||
.git
|
||||
+7
-3
@@ -37,15 +37,19 @@ RUN apk add --no-cache py3-opencv
|
||||
|
||||
# 预装 PySceneDetect(--no-deps: scenedetect 强依赖 opencv-python 会触发源码编译)
|
||||
# opencv 已由 apk 的 py3-opencv 提供,无需 pip 重复安装
|
||||
RUN pip3 install --break-system-packages --no-deps -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com scenedetect \
|
||||
&& pip3 install --break-system-packages -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com click platformdirs tqdm
|
||||
# pip 24+ 扫描系统包元数据时崩溃(python-4.10.0 版本号无效)
|
||||
# 用虚拟环境隔离
|
||||
RUN python3 -m venv --system-site-packages /opt/venv \
|
||||
&& /opt/venv/bin/pip install --no-deps -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com scenedetect \
|
||||
&& /opt/venv/bin/pip install -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com click platformdirs tqdm
|
||||
ENV PATH=/opt/venv/bin:$PATH
|
||||
|
||||
# 验证 PySceneDetect 安装
|
||||
RUN python3 -c "import scenedetect; print(f'scenedetect {scenedetect.__version__} installed')"
|
||||
|
||||
# 预装 HyperFrames(全局安装)
|
||||
# 使用 npmmirror 镜像加速
|
||||
RUN npm install -g hyperframes --registry=https://registry.npmmirror.com/ --ignore-scripts
|
||||
RUN npm install -g hyperframes --ignore-scripts
|
||||
|
||||
# HyperFrames 渲染需要 Chromium/Chrome
|
||||
# 安装 Chromium(提供系统级共享库依赖)和中文字体
|
||||
|
||||
Reference in New Issue
Block a user