forked from nick-traeger/docker-mediathekview
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathDockerfile
57 lines (44 loc) · 1.48 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
# Pull base image.
FROM jlesage/baseimage-gui:debian-10-v4
ENV USER_ID=0 GROUP_ID=0 TERM=xterm
ENV MEDIATHEK_VERSION=14.1.0
# Refresh apt cache
RUN apt-get update \
&& apt-get upgrade -y
# Locale needed for storing files with umlaut
RUN apt-get install -y apt-utils locales \
&& echo en_US.UTF-8 UTF-8 > /etc/locale.gen \
&& locale-gen
ENV LC_ALL en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV LANG en_US.UTF-8
# Runtime deps
RUN apt-get install -y \
wget \
procps \
vlc \
flvstreamer \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
# Maximize only the main/initial window.
COPY src/main-window-selection.xml /etc/openbox/main-window-selection.xml
# Set environment variables.
ENV APP_NAME="Mediathekview" \
S6_KILL_GRACETIME=8000
# Define mountable directories.
VOLUME ["/config"]
VOLUME ["/output"]
# Metadata.
LABEL \
org.label-schema.name="mediathekview" \
org.label-schema.description="Docker container for Mediathekview" \
org.label-schema.version=$MEDIATHEK_VERSION \
org.label-schema.vcs-url="https://github.com/conrad784/docker-mediathekview-webinterface" \
org.label-schema.schema-version="1.0"
# Define software download URLs.
ARG MEDIATHEKVIEW_URL=https://download.mediathekview.de/stabil/MediathekView-$MEDIATHEK_VERSION-linux.tar.gz
# download Mediathekview
RUN mkdir -p /opt/MediathekView
RUN wget -q ${MEDIATHEKVIEW_URL} -O MediathekView.tar.gz
RUN tar xf MediathekView.tar.gz -C /opt
COPY src/startapp.sh /startapp.sh