From 9df0b30eb0145312da8f868d1f95522390b9138c Mon Sep 17 00:00:00 2001 From: Stian Buch Larsen Date: Thu, 7 Apr 2016 15:00:02 +0200 Subject: [PATCH 1/3] Replaces the json with a generic url --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index d164bbb..c0568ca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,9 +5,8 @@ MAINTAINER Stian Larsen RUN apt-get -q update && \ PLEXURL=$(curl -s https://tools.linuxserver.io/latest-plex.json| grep "ubuntu64" | cut -d '"' -f 4) && \ apt-get install -qy dbus avahi-daemon wget && \ -wget -P /tmp "$PLEXURL" && \ -dpkg -i /tmp/plexmediaserver_*_amd64.deb && \ -rm -f /tmp/plexmediaserver_*_amd64.deb && \ +curl -L 'https://plex.tv/downloads/latest/1?channel=8&build=linux-ubuntu-x86_64&distro=ubuntu' -o /tmp/plexmediaserver.deb +dpkg -i /tmp/plexmediaserver.deb && rm -f /tmp/plexmediaserver.deb && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* From b1d5e641aec0c5307bbe75290a6e2aaaa53d18d0 Mon Sep 17 00:00:00 2001 From: Stian Buch Larsen Date: Thu, 7 Apr 2016 15:05:42 +0200 Subject: [PATCH 2/3] Forgot && \ --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c0568ca..3d2c434 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ MAINTAINER Stian Larsen RUN apt-get -q update && \ PLEXURL=$(curl -s https://tools.linuxserver.io/latest-plex.json| grep "ubuntu64" | cut -d '"' -f 4) && \ apt-get install -qy dbus avahi-daemon wget && \ -curl -L 'https://plex.tv/downloads/latest/1?channel=8&build=linux-ubuntu-x86_64&distro=ubuntu' -o /tmp/plexmediaserver.deb +curl -L 'https://plex.tv/downloads/latest/1?channel=8&build=linux-ubuntu-x86_64&distro=ubuntu' -o /tmp/plexmediaserver.deb && \ dpkg -i /tmp/plexmediaserver.deb && rm -f /tmp/plexmediaserver.deb && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* From a25d3ba2242bf03a15e9c8709b0b2decd897540a Mon Sep 17 00:00:00 2001 From: Stian Buch Larsen Date: Thu, 7 Apr 2016 15:07:41 +0200 Subject: [PATCH 3/3] Changed ADD to COPY and remved useless line --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3d2c434..21a2bf0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,6 @@ MAINTAINER Stian Larsen # Install Plex RUN apt-get -q update && \ -PLEXURL=$(curl -s https://tools.linuxserver.io/latest-plex.json| grep "ubuntu64" | cut -d '"' -f 4) && \ apt-get install -qy dbus avahi-daemon wget && \ curl -L 'https://plex.tv/downloads/latest/1?channel=8&build=linux-ubuntu-x86_64&distro=ubuntu' -o /tmp/plexmediaserver.deb && \ dpkg -i /tmp/plexmediaserver.deb && rm -f /tmp/plexmediaserver.deb && \ @@ -17,7 +16,7 @@ COPY services/ /etc/service/ RUN chmod -v +x /etc/service/*/run /etc/my_init.d/*.sh # Define /config in the configuration file not using environment variables -ADD plexmediaserver /defaults/plexmediaserver +COPY plexmediaserver /defaults/plexmediaserver #Mappings and ports VOLUME ["/config", "/transcode"]