plex-test/Dockerfile
Joe Groocock 996fb2a7ac Update image with adamant/busybox base image.
No more patchelf and patching binaries on restart!
2017-05-11 10:42:22 +01:00

21 lines
612 B
Docker

FROM adamant/busybox
MAINTAINER Adam Dodman <adam.dodman@gmx.com>
ENV UID=787 GID=990
ADD start_pms.patch /tmp/start_pms.patch
WORKDIR /tmp
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 \
&& wget -O plexmediaserver.deb 'https://plex.tv/downloads/latest/1?channel=8&build=linux-ubuntu-x86_64&distro=ubuntu' \
&& dpkg-deb -x plexmediaserver.deb / \
&& cd /usr/sbin/ \
&& patch < /tmp/start_pms.patch \
&& rm -rf /tmp/*
WORKDIR /usr/lib/plexmediaserver
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["su-exec", "$UID:$GID", "start_pms"]