forked from ehough/docker-kodi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
119 lines (110 loc) · 6.64 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
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# ehough/docker-kodi - Dockerized Kodi with audio and video.
#
# https://github.com/ehough/docker-kodi
# https://hub.docker.com/r/erichough/kodi/
#
# Copyright 2018-2021 - Eric Hough ([email protected])
#
# 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 ubuntu:focal
ARG KODI_VERSION=19.0
# 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 install -y --no-install-recommends software-properties-common && \
add-apt-repository ppa:team-xbmc/ppa && \
apt-get -y purge openssl software-properties-common && \
apt-get -y --purge autoremove && \
rm -rf /var/lib/apt/lists/*
ARG KODI_EXTRA_PACKAGES=
# 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-inputstream-* input stream add-ons
# - kodi-peripheral-* enables the use of gamepads, joysticks, game controllers, etc.
# - locales additional spoken language support (via x11docker --lang option)
# - pulseaudio in case the user prefers PulseAudio instead of ALSA
# - tzdata necessary for timezone selection
# - va-driver-all the full suite of drivers for the Video Acceleration API (VA API)
# - kodi-game-libretro-* Libretro cores (DEPRECATED: WILL BE REMOVED IN VERSION 4 OF THIS IMAGE)
# - kodi-pvr-* PVR add-ons (DEPRECATED: WILL BE REMOVED IN VERSION 4 OF THIS IMAGE)
# - kodi-screensaver-* additional screensavers (DEPRECATED: WILL BE REMOVED IN VERSION 4 OF THIS IMAGE)
RUN packages=" \
\
ca-certificates \
kodi=2:${KODI_VERSION}+* \
kodi-eventclients-kodi-send \
kodi-game-libretro \
kodi-game-libretro-beetle-pce-fast \
kodi-game-libretro-beetle-vb \
kodi-game-libretro-beetle-wswan \
kodi-game-libretro-bsnes-mercury-accuracy \
kodi-game-libretro-bsnes-mercury-balanced \
kodi-game-libretro-bsnes-mercury-performance \
kodi-game-libretro-desmume \
kodi-game-libretro-fbalpha2012 \
kodi-game-libretro-fuse \
kodi-game-libretro-gambatte \
kodi-game-libretro-prboom \
kodi-game-libretro-stella \
kodi-game-libretro-tgbdual \
kodi-game-libretro-vba-next \
kodi-game-libretro-virtualjaguar \
kodi-inputstream-adaptive \
kodi-inputstream-rtmp \
kodi-peripheral-joystick \
kodi-peripheral-xarcade \
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-octonet \
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-asteroids \
kodi-screensaver-asterwave \
kodi-screensaver-biogenesis \
kodi-screensaver-cpblobs \
kodi-screensaver-greynetic \
kodi-screensaver-matrixtrails \
kodi-screensaver-pingpong \
kodi-screensaver-pyro \
kodi-screensaver-stars \
locales \
pulseaudio \
tzdata \
va-driver-all \
${KODI_EXTRA_PACKAGES}" && \
\
apt-get update && \
apt-get install -y --no-install-recommends $packages && \
apt-get -y --purge autoremove && \
rm -rf /var/lib/apt/lists/*
# setup entry point
COPY entrypoint.sh /usr/local/bin
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]