This repository has been archived by the owner on Aug 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
53 lines (40 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
FROM debian:latest
MAINTAINER firsttris <info@teufel-it.de>
# master, unstable, testing, stable
ENV tvh_release=unstable
ENV _clean="rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*"
ENV _apt_clean="eval apt-get clean && $_clean"
ARG DEBIAN_FRONTEND=noninteractive
# Install dependencies
RUN apt-get update -qq \
&& apt-get install -qqy apt-transport-https software-properties-common python-software-properties bzip2 libavahi-client3 libav-tools xmltv wget udev
# Add key and tvheadend repository
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61
RUN apt-add-repository "https://dl.bintray.com/tvheadend/deb ${tvh_release}"
# Install tvheadend
RUN apt-get update -qq \
&& apt-get install -qqy tvheadend
# Install Sundtek DVB Driver
RUN wget http://www.sundtek.de/media/sundtek_netinst.sh \
&& chmod 777 sundtek_netinst.sh \
&& ./sundtek_netinst.sh -easyvdr
# Add Basic config
ADD config /config/
# Timezone
RUN echo "Europe/Berlin" > /etc/timezone
# Create Locales
ENV LANG="de_DE.UTF-8"
RUN apt-get update -qqy && apt-get install -qqy locales && $_apt_clean \
&& grep "$LANG" /usr/share/i18n/SUPPORTED >> /etc/locale.gen && locale-gen \
&& update-locale LANG=$LANG
# Configure the hts user account and it's folders
RUN groupmod -o -g 9981 hts \
&& usermod -o -u 9981 -a -G video -d /config hts \
&& install -o hts -g hts -d /config /recordings
# Launch script
ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Default container settings
VOLUME /config /recordings /picons
EXPOSE 9981 9982
ENTRYPOINT ["/entrypoint.sh"]