forked from jrottenberg/ffmpeg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ubuntu-dockerfile.template
49 lines (43 loc) · 1.3 KB
/
ubuntu-dockerfile.template
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
# ffmpeg - http://ffmpeg.org/download.html
#
# From https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
#
# https://hub.docker.com/r/jrottenberg/ffmpeg/
#
#
FROM ubuntu:16.04
MAINTAINER Julien Rottenberg <[email protected]>
CMD ["--help"]
ENTRYPOINT ["ffmpeg"]
WORKDIR /tmp/workdir
ENV %%ENV%%
RUN buildDeps="autoconf \
automake \
cmake \
curl \
bzip2 \
g++ \
gcc \
git \
libtool \
make \
nasm \
perl \
pkg-config \
python \
libssl-dev \
yasm \
zlib1g-dev" && \
export MAKEFLAGS="-j$(($(nproc) + 1))" && \
apt-get -yqq update && \
apt-get install -yq --no-install-recommends ${buildDeps} ca-certificates && \
%%RUN%%
## cleanup
cd && \
apt-get purge -y ${buildDeps} && \
apt-get autoremove -y && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists && \
ffmpeg -buildconf
# Let's make sure the app built correctly
# Convenient to verify on https://hub.docker.com/r/jrottenberg/ffmpeg/builds/ console output