forked from Wintermute0110/kodi-install
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
76 lines (55 loc) · 2.6 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
FROM ubuntu:cosmic
ENV DEBIAN_FRONTEND noninteractive
# Install Git
RUN apt-get update && apt-get install -y git
# Install dependencies
RUN apt-get install -y kmod xz-utils x-window-system mesa-utils mesa-utils-extra libxv1 binutils libasound2 libpulse0 pulseaudio tzdata smbclient nfs-common cifs-utils software-properties-common
######################################################
# Kodi
######################################################
# Install Kodi build dependencies
COPY ./kodi/install-build-dependencies-debian.sh /root/install-build-dependencies-debian.sh
RUN /root/install-build-dependencies-debian.sh
# Install nvidia drivers
COPY nvidia.run /root/nvidia.run
RUN chmod +x /root/nvidia.run
RUN /root/nvidia.run --accept-license --no-runlevel-check --no-questions --ui=none --no-kernel-module --no-kernel-module-source --no-backup --tmpdir /tmp2
# Clone Kodi
RUN git clone https://github.com/xbmc/xbmc.git /root/kodi-source
# Copy/run configure script
COPY ./kodi/configure-kodi.sh /root/kodi-source/configure-kodi.sh
RUN /root/kodi-source/configure-kodi.sh
# Build Kodi
COPY ./kodi/build-kodi-x11.sh /root/kodi-source/build-kodi-x11.sh
RUN /root/kodi-source/build-kodi-x11.sh
# Install Kodi
COPY ./kodi/install-kodi.sh /root/kodi-source/install-kodi.sh
RUN /root/kodi-source/install-kodi.sh
# Build binary addons
COPY ./kodi/build-binary-addons-all.sh /root/kodi-source/build-binary-addons-all.sh
RUN /root/kodi-source/build-binary-addons-all.sh
# Build libretro cores
COPY ./kodi/build-binary-addons-libretro-cores.sh /root/kodi-source/build-binary-addons-libretro-cores.sh
RUN /root/kodi-source/build-binary-addons-libretro-cores.sh
######################################################
# Install Dolphin Emulator
######################################################
RUN apt-get install -y qt5-default libx11-xcb1
RUN apt-add-repository ppa:dolphin-emu/ppa
RUN apt-get update
RUN apt-get install -y dolphin-emu-master
######################################################
# Install pcsx2
######################################################
RUN dpkg --add-architecture i386 && \
add-apt-repository ppa:pcsx2-team/pcsx2-daily && \
apt-get update && \
apt-get install -y pcsx2
# Re-install Nvidia driver (pcsx2 seems to need this)
RUN /root/nvidia.run --accept-license --no-runlevel-check --no-questions --ui=none --no-kernel-module --no-kernel-module-source --no-backup --tmpdir /tmp2
# Create user
#RUN groupadd -g 1000 -r kodi && useradd -u 1000 -r -g kodi -G audio,video kodi && \
# mkdir -p /home/kodi
#RUN chown -R kodi:kodi /home/kodi
#USER kodi
ENTRYPOINT ["/usr/local/bin/kodi-standalone"]