2019-01-14 18:33:38 +08:00
|
|
|
FROM ubuntu:18.04
|
|
|
|
|
2020-03-18 23:19:55 +08:00
|
|
|
RUN apt-get update && apt-get --no-install-recommends install -y \
|
2019-01-14 18:33:38 +08:00
|
|
|
pkg-config \
|
|
|
|
cmake \
|
|
|
|
g++ \
|
|
|
|
ninja-build \
|
|
|
|
make \
|
|
|
|
nasm \
|
|
|
|
&& \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
ARG VER
|
|
|
|
|
|
|
|
ADD ffmpeg-${VER}.tar.xz /ffmpeg/
|
|
|
|
|
|
|
|
WORKDIR /ffmpeg/ffmpeg-${VER}
|
|
|
|
RUN ./configure \
|
|
|
|
--enable-avresample \
|
|
|
|
--prefix=/ffmpeg-shared \
|
|
|
|
--enable-shared \
|
|
|
|
--disable-static \
|
|
|
|
--disable-programs \
|
|
|
|
--disable-doc \
|
|
|
|
--disable-avdevice \
|
|
|
|
--disable-postproc \
|
|
|
|
&& make -j8 install \
|
|
|
|
&& make clean \
|
|
|
|
&& make distclean
|
|
|
|
|
|
|
|
RUN ./configure \
|
|
|
|
--enable-avresample \
|
|
|
|
--prefix=/ffmpeg-static \
|
|
|
|
--disable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--enable-pic \
|
|
|
|
--disable-programs \
|
|
|
|
--disable-doc \
|
|
|
|
--disable-avdevice \
|
|
|
|
--disable-postproc \
|
|
|
|
&& make -j8 install \
|
|
|
|
&& make clean \
|
|
|
|
&& make distclean
|
|
|
|
|
|
|
|
WORKDIR /tmp
|