plex-test/Dockerfile

35 lines
1.3 KiB
Docker
Raw Normal View History

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-12-15 16:43:33 +00:00
ENV SUID=900 SGID=900
ADD start_pms /usr/sbin/start_pms
2016-08-26 21:26:39 +00:00
WORKDIR /tmp
ARG PLEX_VER
2017-09-19 23:06:32 +00:00
RUN set -ax \
&& wget http://ftp.de.debian.org/debian/pool/main/g/gcc-6/libstdc++6_6.3.0-18_amd64.deb \
&& wget http://ftp.de.debian.org/debian/pool/main/g/gcc-6/libgcc1_6.3.0-18_amd64.deb \
2017-05-12 00:39:07 +00:00
&& 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 \
&& if [ -z "$PLEX_VER" ]; then \
2017-09-19 23:08:35 +00:00
export PLEX_VER=$(wget -qO- https://adam-ant.co.uk/plex/pass-version.php | sed -n 's/.*"release":\s*"\([^"]*\)".*/\1/p'); \
fi \
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" \
&& dpkg-deb -x plexmediaserver.deb . \
2017-08-24 17:01:26 +00:00
# Move usr/lib/plexmediaserver. Everything else is useless
&& mv usr/lib/plexmediaserver /usr/lib \
&& chmod +x /usr/sbin/start_pms \
&& find /tmp -mindepth 1 -delete
2016-08-26 21:26:39 +00:00
2017-12-15 16:37:42 +00:00
HEALTHCHECK --interval=30s --timeout=12s CMD [ "wget", "-O", "/dev/null", "-T", "10", "-q", "localhost:32400/identity" ]
2017-09-19 23:50:12 +00:00
WORKDIR /usr/lib/plexmediaserver
2016-08-26 21:26:39 +00:00
ENTRYPOINT ["/sbin/tini", "--"]
2017-05-14 20:41:46 +00:00
CMD ["start_pms"]