forked from nicjo814/docker-plexmediaplayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
48 lines (37 loc) · 1.27 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
FROM nicjo814/docker-mpv
# set env variables
ENV DISPLAY=":0"
ENV XAUTHORITY="/tmp/.docker.xauth"
# specify apt packages to install
ENV BUILD_APTLIST=""
ENV APTLIST="lshw git build-essential ninja-build cmake \
mesa-common-dev libxrandr-dev libsdl2-dev libcec-dev dbus \
dbus-x11 libxcb-xinerama0"
#add repository
RUN add-apt-repository -y ppa:george-edison55/cmake-3.x && \
# install packages
apt-get update -q && \
apt-get install \
$APTLIST $BUILD_APTLIST -qy && \
# build plex media player
mkdir -p /tmp && \
cd /tmp && \
git clone https://github.com/plexinc/plex-media-player.git && \
cd plex-media-player && \
mkdir build && \
cd build
#ADD QtConfiguration.cmake /tmp/plex-media-player/CMakeModules/QtConfiguration.cmake
RUN cd /tmp/plex-media-player/build && \
cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DQTROOT=/usr/local/qt5 -DMPV_INCLUDE_DIR=/usr/local/include/mpv -DMPV_LIBRARY=/usr/local/lib/libmpv.so.1 -DCMAKE_INSTALL_PREFIX=output .. && \
ninja && \
cp ./src/plexmediaplayer /usr/local/bin && \
cp ./src/pmphelper /usr/local/bin && \
# cleanup
cd / && \
apt-get purge --remove $BUILD_APTLIST -y && \
apt-get autoremove -y && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/*
# add some files
ADD init/ /etc/my_init.d/
RUN chmod -v +x /etc/my_init.d/*.sh