Skip to content

Commit 097b6c5

Browse files
committed
use variable for initial plex install url
1 parent 9033821 commit 097b6c5

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
FROM lsiobase/xenial
22
MAINTAINER Stian Larsen, sparklyballs
33

4+
# package version
5+
ARG PLEX_WWW="https://plex.tv/downloads/latest/1?channel=8&build=linux-ubuntu-x86_64&distro=ubuntu"
6+
47
# global environment settings
58
ENV DEBIAN_FRONTEND="noninteractive"
69
ENV HOME="/config"
@@ -13,6 +16,7 @@ RUN \
1316
dbus \
1417
less \
1518
wget && \
19+
1620
# cleanup
1721
apt-get clean && \
1822
rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
@@ -21,9 +25,9 @@ RUN \
2125
RUN \
2226
curl -o \
2327
/tmp/plexmediaserver.deb -L \
24-
'https://plex.tv/downloads/latest/1?channel=8&build=linux-ubuntu-x86_64&distro=ubuntu' && \
28+
"${PLEX_WWW}" && \
2529
dpkg -i /tmp/plexmediaserver.deb && \
26-
rm -f /tmp/plexmediaserver.deb
30+
rm -f /tmp/*
2731

2832
# add local files
2933
COPY root/ /

0 commit comments

Comments
 (0)