mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
879 B
46 lines
879 B
6 years ago
|
FROM ubuntu:18.04
|
||
|
|
||
|
RUN apt-get update && apt-get install -y \
|
||
|
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
|