-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
54 lines (48 loc) · 982 Bytes
/
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
# Setup
FROM ubuntu:20.04 AS setup
WORKDIR /app
# https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -qq && apt-get -y install \
autoconf \
automake \
build-essential \
cmake \
git-core \
libass-dev \
libfreetype6-dev \
libgnutls28-dev \
libmp3lame-dev \
libsdl2-dev \
libtool \
libva-dev \
libvdpau-dev \
libvorbis-dev \
libxcb1-dev \
libxcb-shm0-dev \
libxcb-xfixes0-dev \
meson \
ninja-build \
pkg-config \
texinfo \
wget \
yasm \
zlib1g-dev \
# Additional dependencies
libx264-dev
# Install script
COPY scripts/install.sh scripts/install.sh
RUN ./scripts/install.sh
# Copy sources
COPY FFmpeg FFmpeg
COPY deps deps
COPY scripts scripts
# Build scripts
FROM setup AS build
RUN ./scripts/build-deps.sh
RUN ./scripts/configure.sh
RUN ./scripts/build.sh
RUN ./scripts/optimize.sh
# Export
FROM scratch AS export
COPY --from=build /app/ffmpeg.wasm /app/ffprobe.wasm ./