2017-05-11 09:42:22 +00:00
|
|
|
FROM adamant/busybox
|
2016-08-26 21:26:39 +00:00
|
|
|
MAINTAINER Adam Dodman <adam.dodman@gmx.com>
|
|
|
|
|
2017-05-11 09:42:22 +00:00
|
|
|
ENV UID=787 GID=990
|
2016-08-26 21:26:39 +00:00
|
|
|
ADD start_pms.patch /tmp/start_pms.patch
|
|
|
|
|
|
|
|
WORKDIR /tmp
|
|
|
|
|
2017-05-11 09:42:22 +00:00
|
|
|
RUN wget http://ftp.de.debian.org/debian/pool/main/g/gcc-4.9/libstdc++6_4.9.2-10_amd64.deb \
|
|
|
|
&& pkgextract libstdc++6*.deb \
|
2016-08-26 21:26:39 +00:00
|
|
|
&& wget -O plexmediaserver.deb 'https://plex.tv/downloads/latest/1?channel=8&build=linux-ubuntu-x86_64&distro=ubuntu' \
|
2017-05-11 09:42:22 +00:00
|
|
|
&& dpkg-deb -x plexmediaserver.deb / \
|
|
|
|
&& cd /usr/sbin/ \
|
|
|
|
&& patch < /tmp/start_pms.patch \
|
2016-08-26 21:26:39 +00:00
|
|
|
&& rm -rf /tmp/*
|
|
|
|
|
2017-05-11 09:42:22 +00:00
|
|
|
WORKDIR /usr/lib/plexmediaserver
|
2016-08-26 21:26:39 +00:00
|
|
|
|
2017-05-11 09:42:22 +00:00
|
|
|
ENTRYPOINT ["/sbin/tini", "--"]
|
|
|
|
CMD ["su-exec", "$UID:$GID", "start_pms"]
|