diff --git a/Dockerfile b/Dockerfile index 55160a331..4267b31b1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,10 @@ RUN apt-get update && apt-get install -y build-essential # 复制依赖列表和锁文件 COPY pyproject.toml uv.lock ./ +COPY --from=mwader/static-ffmpeg:latest /ffmpeg /usr/local/bin/ffmpeg +COPY --from=mwader/static-ffmpeg:latest /ffprobe /usr/local/bin/ffprobe +RUN ldconfig && ffmpeg -version + # 安装依赖(使用 --frozen 确保使用锁文件中的版本) RUN uv sync --frozen --no-dev