forked from FFmpeg/FFmpeg
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
78 lines (71 loc) · 1.55 KB
/
Dockerfile
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
FROM ubuntu:18.04
# Set the working directory to /app
WORKDIR /app
RUN \
apt-get update && \
apt-get install software-properties-common -y && \
add-apt-repository universe && \
add-apt-repository ppa:xorg-edgers/ppa && \
apt-get install -y \
alsa \
apt-utils \
automake \
autoconf \
build-essential \
cmake \
dkms \
git-core \
libasound2-dev \
libass-dev \
libfreetype6-dev \
libgl1-mesa-glx \
libgl1 \
libpulse-dev \
libssl-dev \
libtool \
libva-dev \
libva2 \
libva-drm2 \
libva-x11-2 \
libxv1 \
libx264-152 \
libx264-dev \
nasm \
pkg-config \
pulseaudio \
texinfo \
yasm \
zlib1g-dev
# CircleCI
RUN apt-get install -y \
git \
openssh-client \
ca-certificates \
tar \
zip
# Setup vmaf
RUN cd /tmp;git clone https://github.com/Netflix/vmaf.git;cd vmaf/ptools;make;cd ../wrapper;make -j8;cd ..;sudo make install;cd /app
# Copy the current directory contents into the container at /app
COPY . /app
RUN make clean
RUN ./configure \
--enable-openssl \
--enable-version3 \
--enable-static \
--disable-sdl2 \
--disable-debug \
--disable-ffplay \
--disable-libxcb \
--disable-libxcb-shm \
--disable-indev=sndio \
--disable-outdev=sndio \
--disable-outdev=xv \
--enable-libx264 \
--enable-libpulse \
--enable-vaapi \
--enable-libfreetype \
--enable-fontconfig \
--enable-libvmaf \
--extra-libs="-lpthread -lm" \
--pkg-config-flags=--static
RUN make -j8