From 097b6c57ed5d033b87140e8c30a6c93356e41897 Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Sun, 24 Jul 2016 05:09:20 +0100 Subject: [PATCH] use variable for initial plex install url --- Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1a2363f..2a84f90 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,9 @@ FROM lsiobase/xenial MAINTAINER Stian Larsen, sparklyballs +# package version +ARG PLEX_WWW="https://plex.tv/downloads/latest/1?channel=8&build=linux-ubuntu-x86_64&distro=ubuntu" + # global environment settings ENV DEBIAN_FRONTEND="noninteractive" ENV HOME="/config" @@ -13,6 +16,7 @@ RUN \ dbus \ less \ wget && \ + # cleanup apt-get clean && \ rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/* @@ -21,9 +25,9 @@ RUN \ RUN \ curl -o \ /tmp/plexmediaserver.deb -L \ - 'https://plex.tv/downloads/latest/1?channel=8&build=linux-ubuntu-x86_64&distro=ubuntu' && \ + "${PLEX_WWW}" && \ dpkg -i /tmp/plexmediaserver.deb && \ - rm -f /tmp/plexmediaserver.deb + rm -f /tmp/* # add local files COPY root/ /