2
0
mirror of https://github.com/spritsail/plex-media-server.git synced 2024-10-05 05:03:53 +00:00

Remove extra crap from /usr/share and /etc

This commit is contained in:
Joe Groocock 2017-05-11 12:57:46 +01:00
parent 996fb2a7ac
commit 0d0dd538c0

View File

@ -9,10 +9,12 @@ WORKDIR /tmp
RUN wget http://ftp.de.debian.org/debian/pool/main/g/gcc-4.9/libstdc++6_4.9.2-10_amd64.deb \ 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 \ && pkgextract libstdc++6*.deb \
&& wget -O plexmediaserver.deb 'https://plex.tv/downloads/latest/1?channel=8&build=linux-ubuntu-x86_64&distro=ubuntu' \ && wget -O plexmediaserver.deb 'https://plex.tv/downloads/latest/1?channel=8&build=linux-ubuntu-x86_64&distro=ubuntu' \
&& dpkg-deb -x plexmediaserver.deb / \ && dpkg-deb -x plexmediaserver.deb . \
&& cd /usr/sbin/ \ # Move usr/lib and start_pms. Everything else is useless
&& patch < /tmp/start_pms.patch \ && mv usr/lib/plexmediaserver /usr/lib \
&& rm -rf /tmp/* && mv usr/sbin/start_pms /usr/sbin \
&& patch /usr/sbin/start_pms < /tmp/start_pms.patch \
&& find /tmp -mindepth 1 -delete
WORKDIR /usr/lib/plexmediaserver WORKDIR /usr/lib/plexmediaserver