因?yàn)樽罱?xiàng)目需要所以在docker內(nèi)部安裝ffmpeg 我是各種百度無解, 去國外的stackoverflow中才找到的解決方案, 原因在于docker用的是阿里云的鏡像, 但是阿里云的鏡像里面沒有ffmpe, 所以要強(qiáng)制切換源
參考地址 https://stackoverflow.com/questions/55386246/w-failed-to-fetch-http-deb-debian-org-debian-dists-jessie-updates-main-binary
上代碼
RUN echo "deb [check-valid-until=no] http://archive.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list
# As suggested by a user, for some people this line works instead of the first one. Use whichever works for your case
# RUN echo "deb [check-valid-until=no] http://archive.debian.org/debian jessie main" > /etc/apt/sources.list.d/jessie.list
RUN sed -i '/deb http:\/\/deb.debian.org\/debian jessie-updates main/d' /etc/apt/sources.list
#7更新源
RUN apt-get -o Acquire::Check-Valid-Until=false update
#8安裝ffmpeg
RUN apt-get -y --force-yes install yasm ffmpeg