Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
105 lines (95 loc) · 5.79 KB
/
Copy pathDockerfile
File metadata and controls
105 lines (95 loc) · 5.79 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# ehough/docker-kodi - Dockerized Kodi with audio and video.
#
# https://github.com/ehough/docker-kodi
# https://hub.docker.com/r/erichough/kodi/
#
# Copyright 2018-2020 - Eric Hough (eric@tubepress.com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
FROM balenalib/rpi-raspbian:bookworm
# https://github.com/ehough/docker-nfs-server/pull/3#issuecomment-387880692
ARG DEBIAN_FRONTEND=noninteractive
# install the team-xbmc ppa
RUN apt-get update && \
apt-get -y purge openssl && \
apt-get -y --purge autoremove && \
apt-get dist-upgrade && \
# Bugfix for: installed kodi package post-installation script subprocess returned error exit status 1
# either install udev or make the required directory
sudo apt-get install uuid-dev && \
# mkdir -p /etc/udev/rules.d
rm -rf /var/lib/apt/lists/*
# besides kodi, we will install a few extra packages:
# - ca-certificates allows Kodi to properly establish HTTPS connections
# - kodi-eventclients-kodi-send allows us to shut down Kodi gracefully upon container termination
# - kodi-game-libretro allows Kodi to utilize Libretro cores as game add-ons
# - kodi-game-libretro-* Libretro cores
# - kodi-inputstream-* input stream add-ons
# - kodi-peripheral-* enables the use of gamepads, joysticks, game controllers, etc.
# - kodi-pvr-* PVR add-ons
# - kodi-screensaver-* additional screensavers
# - lirc,lirc-compat-remotes enables the use of IR Remotes
# - locales additional spoken language support (via x11docker --lang option)
# - pulseaudio in case the user prefers PulseAudio instead of ALSA
# - tzdata necessary for timezone selection
RUN packages=" \
fbset \
ca-certificates \
mesa-* \
kodi \
kodi-eventclients-kodi-send \
kodi-inputstream-adaptive \
kodi-inputstream-rtmp \
kodi-peripheral-joystick \
kodi-pvr-argustv \
kodi-pvr-dvblink \
kodi-pvr-dvbviewer \
kodi-pvr-filmon \
kodi-pvr-hdhomerun \
kodi-pvr-hts \
kodi-pvr-iptvsimple \
kodi-pvr-mediaportal-tvserver \
kodi-pvr-mythtv \
kodi-pvr-nextpvr \
kodi-pvr-njoy \
kodi-pvr-pctv \
kodi-pvr-sledovanitv-cz \
kodi-pvr-stalker \
kodi-pvr-teleboy \
kodi-pvr-vbox \
kodi-pvr-vdr-vnsi \
kodi-pvr-vuplus \
kodi-pvr-wmc \
kodi-pvr-zattoo \
kodi-screensaver-biogenesis \
kodi-screensaver-pyro \
lirc \
lirc-compat-remotes \
locales \
pulseaudio \
libnss3 \
tzdata" && \
\
apt-get update && \
apt-get install -y $packages
# Add python for netflix plugin
RUN sudo apt-get install python3-pip python3-cryptography build-essential python3-all-dev \
python3-setuptools python3-wheel && \
pip install --break-system-packages pycryptodomex && \
ln -s /usr/lib/python3/dist-packages/Crypto /usr/lib/python3/dist-packages/Cryptodome && \
apt-get -y --purge autoremove && \
rm -rf /var/lib/apt/lists/*
RUN groupadd -g 9002 kodi && useradd -u 9002 -r -g kodi kodi && usermod -a -G video kodi
ADD /asound.conf /etc/asound.conf
# setup entry point
COPY entrypoint.sh /usr/local/bin
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]