Skip to content

Commit

Permalink
✨ Add AdGuard Home signature verification
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck committed Oct 29, 2020
1 parent 819c24d commit d589012
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions adguard/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# Setup base
# hadolint ignore=DL3003
RUN \
apk add --no-cache \
apk add --no-cache --virtual .build-dependencies \
gnupg=2.2.23-r0 \
\
&& apk add --no-cache \
lua-resty-http=0.15-r0 \
nginx-mod-http-lua=1.18.0-r1 \
nginx=1.18.0-r1 \
Expand All @@ -26,10 +29,24 @@ RUN \
&& curl -L -s \
"https://github.com/AdguardTeam/AdGuardHome/releases/download/v0.104.0/AdGuardHome_linux_${ARCH}.tar.gz" \
| tar zxvf - -C /opt/ \
\
&& export GNUPGHOME="$(mktemp -d)" \
&& gpg \
--batch \
--keyserver pgp.key-server.io \
--recv-keys "58D6AD46BC509C6181A22C5F9A6F0EB91222CCA0" \
&& gpg \
--batch \
--verify /opt/AdGuardHome/AdGuardHome.sig /opt/AdGuardHome/AdGuardHome \
&& { command -v gpgconf > /dev/null && gpgconf --kill all || :; } \
\
&& chmod a+x /opt/AdGuardHome/AdGuardHome \
\
&& apk del --no-cache --purge .build-dependencies \
&& rm -fr \
/etc/nginx
"$GNUPGHOME" \
/etc/nginx \
/tmp/*

# Copy root filesystem
COPY rootfs /
Expand Down

0 comments on commit d589012

Please sign in to comment.