ffmpeg docker 编排

FROM qts8n/cuda-python:devel AS ffmpeg_base
#timezone config
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN mkdir /home/gydan \
    && mkdir /home/gydan/ffmpeg \
    && mkdir /home/gydan/ffmpeg/prefix

RUN  apt-get install -y wget \
  && rm -rf /var/lib/apt/lists/*
RUN wget http://www.ffmpeg.org/releases/ffmpeg-5.0.tar.gz -O /home/gydan/ffmpeg/ffmpeg-5.0.tar.gz
#COPY ffmpeg-5.0.tar.gz /home/gydan/ffmpeg/
RUN cd /home/gydan/ffmpeg \
    && tar -xzvf ffmpeg-5.0.tar.gz \
    && cd ffmpeg-5.0 \
    && ./configure --prefix=/home/gydan/ffmpeg/prefix --disable-x86asm \
    && make  \
    && make install \
    && rm ffmpeg-5.0.tar.gz

你可能感兴趣的:(linux,docker,音视频,容器)