2017-05-12 16:21:10 +00:00
|
|
|
FROM adamant/busybox:libressl
|
2016-08-26 21:26:39 +00:00
|
|
|
MAINTAINER Adam Dodman <adam.dodman@gmx.com>
|
|
|
|
|
2017-05-11 12:58:16 +00:00
|
|
|
ENV UID=900 GID=900
|
2017-06-02 21:22:00 +00:00
|
|
|
ADD start_pms /usr/sbin/start_pms
|
2016-08-26 21:26:39 +00:00
|
|
|
|
|
|
|
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 \
|
2017-05-12 00:39:07 +00:00
|
|
|
&& wget http://ftp.de.debian.org/debian/pool/main/g/gcc-4.9/libgcc1_4.9.2-10_amd64.deb \
|
|
|
|
&& dpkg-deb -x libstdc++6*.deb . \
|
|
|
|
&& dpkg-deb -x libgcc1*.deb . \
|
|
|
|
# We only need the lib files, everything else is debian junk.
|
|
|
|
&& mv /tmp/usr/lib/x86_64-linux-gnu/* /lib \
|
|
|
|
&& mv /tmp/lib/x86_64-linux-gnu/* /lib \
|
2017-07-17 17:51:46 +00:00
|
|
|
&& export PLEX_VER=$(wget -qO- https://adam-ant.co.uk/plex/version.php | sed -n 's/.*"release":\s*"\([^"]*\)".*/\1/p') \
|
2017-07-09 20:40:03 +00:00
|
|
|
&& wget -O plexmediaserver.deb "https://downloads.plex.tv/plex-media-server/$PLEX_VER/plexmediaserver_"$PLEX_VER"_amd64.deb" \
|
2017-05-11 11:57:46 +00:00
|
|
|
&& dpkg-deb -x plexmediaserver.deb . \
|
2017-08-24 17:01:26 +00:00
|
|
|
# Move usr/lib/plexmediaserver. Everything else is useless
|
2017-05-11 11:57:46 +00:00
|
|
|
&& mv usr/lib/plexmediaserver /usr/lib \
|
2017-06-02 21:22:00 +00:00
|
|
|
&& chmod +x /usr/sbin/start_pms \
|
2017-05-11 11:57:46 +00:00
|
|
|
&& find /tmp -mindepth 1 -delete
|
2016-08-26 21:26:39 +00:00
|
|
|
|
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", "--"]
|
2017-05-14 20:41:46 +00:00
|
|
|
CMD ["start_pms"]
|