2
0
mirror of https://github.com/spritsail/plex-media-server.git synced 2024-11-05 01:16:23 +00:00
plex-media-server/Dockerfile

45 lines
1.7 KiB
Docker
Raw Normal View History

2018-07-08 13:29:12 +00:00
FROM spritsail/libressl
2018-03-16 15:26:23 +00:00
2018-07-08 13:30:52 +00:00
ARG PLEX_VER=1.13.2.5154-fd05be322
ARG PLEX_SHA=81ff7f8d80ac46ca663a54e09667ad47a2ccb1cd
ARG LIBSTDCPP_VER=6.3.0-18+deb9u1
ARG LIBGCC1_VER=6.3.0-18+deb9u1
2018-03-16 15:26:23 +00:00
LABEL maintainer="Spritsail <plex@spritsail.io>" \
org.label-schema.vendor="Spritsail" \
org.label-schema.name="Plex Media Server" \
org.label-schema.url="https://www.plex.tv/downloads/" \
2018-07-08 13:30:52 +00:00
org.label-schema.description="Tiny Docker image for Plex Media Server, built on busybox" \
org.label-schema.version=${PLEX_VER} \
io.spritsail.version.plex=${PLEX_VER} \
io.spritsail.version.libstdcpp=${LIBSTDCPP_VER} \
io.spritsail.version.libgcc1=${LIBGCC1_VER}
2016-08-26 21:26:39 +00:00
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
2018-03-16 15:26:23 +00:00
RUN chmod +x /usr/sbin/start_pms \
&& wget http://ftp.de.debian.org/debian/pool/main/g/gcc-${LIBSTDCPP_VER:0:1}/libstdc++6_${LIBSTDCPP_VER}_amd64.deb \
&& wget http://ftp.de.debian.org/debian/pool/main/g/gcc-${LIBGCC1_VER:0:1}/libgcc1_${LIBGCC1_VER}_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.
2018-03-16 15:26:23 +00:00
&& mv $PWD/usr/lib/x86_64-linux-gnu/* /lib \
&& mv $PWD/lib/x86_64-linux-gnu/* /lib \
&& echo "$PLEX_SHA plexmediaserver.deb" > sumfile \
2018-07-08 13:30:52 +00:00
&& wget -O plexmediaserver.deb https://downloads.plex.tv/plex-media-server/${PLEX_VER}/plexmediaserver_${PLEX_VER}_amd64.deb \
2018-03-16 15:26:23 +00:00
&& sha1sum -c sumfile \
&& dpkg-deb -x plexmediaserver.deb . \
&& mv usr/lib/plexmediaserver /usr/lib \
2018-03-16 15:26:23 +00:00
&& find $PWD -mindepth 1 -delete
2016-08-26 21:26:39 +00:00
2018-03-16 15:26:23 +00:00
HEALTHCHECK --interval=10s --timeout=5s \
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"]