From 298c77740d36266b9f01f4aa46dbad8bc81ab49e Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Sat, 29 Mar 2025 17:26:57 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8feat:=20docker=20=E9=95=9C=E5=83=8F?= =?UTF-8?q?=E6=8F=90=E4=BE=9B=E5=86=85=E7=BD=AE=20ffmpeg=20#979?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1b2314970..2bc60833b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ RUN python -m pip install uv RUN uv pip install -r requirements.txt --no-cache-dir --system -RUN uv pip install socksio uv pyffmpeg --no-cache-dir --system +RUN uv pip install socksio uv pyffmpeg pilk --no-cache-dir --system + +# 释出 ffmpeg +RUN python -c "from pyffmpeg import FFmpeg; ff = FFmpeg();" + +# add /root/.pyffmpeg/bin/ffmpeg to PATH, inorder to use ffmpeg +RUN echo 'export PATH=$PATH:/root/.pyffmpeg/bin' >> ~/.bashrc EXPOSE 6185 EXPOSE 6186