-
Notifications
You must be signed in to change notification settings - Fork 86
/
Dockerfile.minimal
32 lines (29 loc) · 1.04 KB
/
Dockerfile.minimal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM nvidia/cuda:9.1-runtime-ubuntu16.04
ARG FFMPEG_VERSION=3.4.2
# nvcuvid deps
RUN apt-get update --fix-missing && \
apt-get install -y libx11-6 libxext6
ENV NVIDIA_DRIVER_CAPABILITIES=video,compute,utility
# minimal ffmpeg from source
RUN apt-get install -y yasm wget bzip2 g++ gcc libc-dev make && \
cd /tmp && wget -q http://ffmpeg.org/releases/ffmpeg-$FFMPEG_VERSION.tar.bz2 && \
tar xf ffmpeg-$FFMPEG_VERSION.tar.bz2 && \
rm ffmpeg-$FFMPEG_VERSION.tar.bz2 && \
cd ffmpeg-$FFMPEG_VERSION && \
./configure \
--prefix=/usr/local \
--disable-static \
--disable-all \
--disable-autodetect \
--disable-iconv \
--enable-shared \
--enable-avformat \
--enable-avcodec \
--enable-avfilter \
--enable-protocol=file \
--enable-demuxer=mov,matroska \
--enable-bsf=h264_mp4toannexb,hevc_mp4toannexb && \
make -j8 && make install && \
cd /tmp && rm -rf ffmpeg-$FFMPEG_VERSION && \
apt-get purge -y yasm wget bzip2 g++ gcc libc-dev make && \
apt-get autoremove -y