Browse Source

added raspbian repo

tags/v2.0.0
Robin Thoni 6 years ago
parent
commit
1868545f05
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      pdns/Dockerfile

+ 2
- 1
pdns/Dockerfile View File

@@ -6,7 +6,8 @@ RUN apt-get update && \
6 6
     apt-get install -y curl && \
7 7
     apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
8 8
 
9
-RUN echo 'deb http://repo.powerdns.com/debian jessie-auth-40 main' > /etc/apt/sources.list.d/pdns.list && \
9
+RUN dist=$(if uname -m | grep -iq arm  ; then echo raspbian; else echo debian; fi) &&\
10
+     echo "deb http://repo.powerdns.com/${dist} jessie-auth-40 main" > /etc/apt/sources.list.d/pdns.list && \
10 11
     echo 'Package: pdns-*\nPin: origin repo.powerdns.com\nPin-Priority: 600' > /etc/apt/preferences.d/pdns && \
11 12
     curl https://repo.powerdns.com/FD380FBB-pub.asc | apt-key add -
12 13
 

Loading…
Cancel
Save