mirror of
https://github.com/spritsail/plex-media-server.git
synced 2024-12-20 11:34:36 +00:00
Improve environment portability some more
This commit is contained in:
parent
aa4cc38b80
commit
de30f6a0a9
@ -2,7 +2,8 @@ FROM alpine:3.4
|
|||||||
MAINTAINER Adam Dodman <adam.dodman@gmx.com>
|
MAINTAINER Adam Dodman <adam.dodman@gmx.com>
|
||||||
|
|
||||||
ENV UID=787 UNAME=plex GID=990 GNAME=media DESTDIR="/plex"
|
ENV UID=787 UNAME=plex GID=990 GNAME=media DESTDIR="/plex"
|
||||||
ENV GLIBC_LIBRARY_PATH="/plex/lib" GLIBC_LD_LINUX_SO="/plex/lib/ld-linux-x86-64.so.2"
|
ENV GLIBC_LIBRARY_PATH="$DESTDIR/lib" GLIBC_LD_LINUX_SO="/plex/lib/ld-linux-x86-64.so.2"
|
||||||
|
ENV DEBS="libc6 libgcc1 libstdc++6 plexmediaserver"
|
||||||
|
|
||||||
ADD start_pms.patch /tmp/start_pms.patch
|
ADD start_pms.patch /tmp/start_pms.patch
|
||||||
|
|
||||||
@ -19,7 +20,7 @@ RUN addgroup -g $GID $GNAME \
|
|||||||
&& wget http://ftp.debian.org/debian/pool/main/g/gcc-4.9/libstdc++6_4.9.2-10_amd64.deb \
|
&& wget http://ftp.debian.org/debian/pool/main/g/gcc-4.9/libstdc++6_4.9.2-10_amd64.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' \
|
||||||
|
|
||||||
&& for pkg in libc6 libgcc1 libstdc++6 plexmediaserver; do \
|
&& for pkg in $DEBS; do \
|
||||||
mkdir $pkg; \
|
mkdir $pkg; \
|
||||||
cd $pkg; \
|
cd $pkg; \
|
||||||
ar x ../$pkg*.deb; \
|
ar x ../$pkg*.deb; \
|
||||||
|
Loading…
Reference in New Issue
Block a user