plex-test/Dockerfile
2017-06-29 22:42:35 +01:00

27 lines
990 B
Docker

FROM adamant/busybox:libressl
MAINTAINER Adam Dodman <adam.dodman@gmx.com>
ENV UID=900 GID=900
ADD start_pms /usr/sbin/start_pms
WORKDIR /tmp
RUN wget http://ftp.de.debian.org/debian/pool/main/g/gcc-4.9/libstdc++6_4.9.2-10_amd64.deb \
&& 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 \
&& wget -O plexmediaserver.deb "https://downloads.plex.tv/plex-media-server/1.7.4.4017-3886b5c85/plexmediaserver_1.7.4.4017-3886b5c85_amd64.deb" \
&& dpkg-deb -x plexmediaserver.deb . \
# Move usr/lib and start_pms. Everything else is useless
&& mv usr/lib/plexmediaserver /usr/lib \
&& chmod +x /usr/sbin/start_pms \
&& find /tmp -mindepth 1 -delete
WORKDIR /usr/lib/plexmediaserver
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["start_pms"]