ソースを参照

Put download URL in a ARG

4
Chris Smith 7年前
コミット
be8e61a447
1個のファイルの変更3行の追加1行の削除
  1. 3
    1
      Dockerfile

+ 3
- 1
Dockerfile ファイルの表示

@@ -1,6 +1,8 @@
1 1
 FROM ubuntu:xenial 
2 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 6
 RUN \
5 7
   apt-get update && \ 
6 8
   apt-get -y install \
@@ -11,7 +13,7 @@ RUN \
11 13
     openjdk-8-jre-headless \
12 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 17
   dpkg --install unifi_sysvinit_all.deb && \
16 18
   rm unifi_sysvinit_all.deb && \
17 19
   ln -s /var/lib/unifi /usr/lib/unifi/data

読み込み中…
キャンセル
保存