-
Notifications
You must be signed in to change notification settings - Fork 24
/
Dockerfile.production
33 lines (28 loc) · 983 Bytes
/
Dockerfile.production
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM alpine:3.19
WORKDIR /etc/rawdns
ENV RAWDNS_VERSION 1.10
RUN set -ex; \
\
apk add --no-cache --virtual .fetch-deps \
ca-certificates \
dpkg \
# gnupg \
openssl \
; \
\
dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; \
wget -O /usr/local/bin/rawdns "https://github.com/tianon/rawdns/releases/download/$RAWDNS_VERSION/rawdns-$dpkgArch"; \
# wget -O /usr/local/bin/rawdns.asc "https://github.com/tianon/rawdns/releases/download/$RAWDNS_VERSION/rawdns-$dpkgArch.asc"; \
\
# export GNUPGHOME="$(mktemp -d)"; \
## gpg: key BF357DD4: public key "Tianon Gravi <tianon@tianon.xyz>" imported
# gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; \
# gpg --batch --verify /usr/local/bin/rawdns.asc /usr/local/bin/rawdns; \
# gpgconf --kill all; \
# rm -r "$GNUPGHOME" /usr/local/bin/rawdns.asc; \
\
chmod +x /usr/local/bin/rawdns; \
\
apk del .fetch-deps
COPY example-config.json ./
CMD ["rawdns"]