|
@@ -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
|
|