Skip to content

Commit

Permalink
Install powerdns keyring directly to trusted.gpg.d.
Browse files Browse the repository at this point in the history
This replaces the deprecated apt-key method that was previously used.
  • Loading branch information
icedream committed Mar 28, 2022
1 parent ef7d91a commit 35a570c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pdns/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,17 @@ ENV PDNSCONF_LAUNCH="gmysql" \
PDNSCONF_API_KEY="" \
SECALLZONES_CRONJOB="no"

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -q -y curl gnupg && \
curl https://repo.powerdns.com/FD380FBB-pub.asc | apt-key add -
ADD https://repo.powerdns.com/FD380FBB-pub.asc /etc/apt/trusted.gpg.d/powerdns-key.asc

ADD pdns.list /etc/apt/sources.list.d/pdns.list
ADD pdns.preference /etc/apt/preferences.d/pdns

RUN apt-get update && \
RUN \
chmod 644 /etc/apt/trusted.gpg.d/powerdns-key.asc && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -q -y pdns-server pdns-backend-mysql mariadb-client && \
rm /etc/powerdns/pdns.d/*.conf && rm /etc/powerdns/*.conf && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends cron jq && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends cron curl jq && \
rm /etc/cron.daily/* && \
mkdir /var/run/pdns && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Expand Down

0 comments on commit 35a570c

Please sign in to comment.