-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
63 lines (45 loc) · 1.65 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
ARG BASE_IMAGE
# ==============
# Baseline image
# ==============
FROM jrottenberg/ffmpeg:4.0-ubuntu AS ffmpeg-runtime
RUN apt-get update
RUN apt-get install -y \
psmisc lsof inetutils-ping net-tools dnsutils \
inotify-tools curl
# ==========================
# Performance analysis image
# ==========================
# Derive image from regular runtime image.
FROM ffmpeg-runtime AS avbroadcast-analyzer
# Install common tools.
RUN apt-get install -y wget httpie jq vim nano
# Install performance analysis tools.
RUN apt-get install -y stress htop iotop tmux glances
# =============
# Runtime image
# =============
FROM ${BASE_IMAGE} AS avbroadcast-runtime
LABEL maintainer="[email protected]"
LABEL title="Runtime for avbroadcast"
LABEL description="Republish media streams for mass consumption using ffmpeg and Shaka Packager"
# Downlad URL to custom Shaka Packager.
ARG SHAKA_PACKAGER_DOWNLOAD_URL=https://packages.elmyra.de/3q/foss/packager-linux-http-upload
# Regular runtime.
RUN apt-get install -y python3 python3-pip git
# Install Shaka Packager.
RUN \
wget --quiet --output-document /usr/local/bin/packager ${SHAKA_PACKAGER_DOWNLOAD_URL} && \
chmod +x /usr/local/bin/packager
COPY tools/avsysinfo.sh /usr/local/bin/avsysinfo
# Install avbroadcast.
ENV LANG=C.UTF-8
RUN pip3 install --upgrade pip
RUN pip3 install avbroadcast
# Install tools.
COPY tools/avbroadcast-upgrade.sh /boot/avbroadcast-upgrade
COPY tools/docker-entrypoint.sh /boot/docker-entrypoint
# Report about system environment and software releases at build-time.
RUN avsysinfo
ENTRYPOINT ["/boot/docker-entrypoint"]
CMD ["echo", "Running avbroadcast in Docker container"]