安装步骤
#换中科大的软件源
sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/debian.sources
#阿里云
sed -i "s@/deb.debian.org@/mirrors.aliyun.com@g" /etc/apt/sources.list.d/debian.sources
sed -i "s@/security.debian.org@/mirrors.aliyun.com@g" /etc/apt/sources.list.d/debian.sources
#更新
apt update
#安装
apt install ffmpeg -y
Dockerfile
FROM debian:12.1-slim
#timezone
RUN mv /etc/localtime /etc/localtime_bak
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
#安装ffmpeg
RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/debian.sources \
&& apt update \
&& apt install ffmpeg -y