Browse Source

Put download URL in a ARG

4
Chris Smith 7 years ago
parent
commit
be8e61a447
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      Dockerfile

+ 3
- 1
Dockerfile View File

1
 FROM ubuntu:xenial 
1
 FROM ubuntu:xenial 
2
 MAINTAINER Chris Smith <chris87@gmail.com> 
2
 MAINTAINER Chris Smith <chris87@gmail.com> 
3
 
3
 
4
+ARG url=http://www.ubnt.com/downloads/unifi/5.2.7/unifi_sysvinit_all.deb
5
+
4
 RUN \
6
 RUN \
5
   apt-get update && \ 
7
   apt-get update && \ 
6
   apt-get -y install \
8
   apt-get -y install \
11
     openjdk-8-jre-headless \
13
     openjdk-8-jre-headless \
12
     software-properties-common
14
     software-properties-common
13
 
15
 
14
-RUN curl -L -o unifi_sysvinit_all.deb http://www.ubnt.com/downloads/unifi/5.2.7/unifi_sysvinit_all.deb && \
16
+RUN curl -L -o unifi_sysvinit_all.deb $url && \
15
   dpkg --install unifi_sysvinit_all.deb && \
17
   dpkg --install unifi_sysvinit_all.deb && \
16
   rm unifi_sysvinit_all.deb && \
18
   rm unifi_sysvinit_all.deb && \
17
   ln -s /var/lib/unifi /usr/lib/unifi/data
19
   ln -s /var/lib/unifi /usr/lib/unifi/data

Loading…
Cancel
Save