-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (28 loc) · 811 Bytes
/
Dockerfile
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
FROM alpine:3.13
ENV POWERDNS_RECURSOR_VERSION=4.4.2
RUN set -ex \
&& apk --no-cache add \
boost-context \
boost-filesystem \
lua5.3-libs \
libgcc \
libstdc++ \
openssl \
\
&& apk --no-cache add --virtual build-deps \
boost-dev \
g++ \
lua5.3-dev \
make \
openssl-dev \
wget \
\
&& wget -qO - https://downloads.powerdns.com/releases/pdns-recursor-$POWERDNS_RECURSOR_VERSION.tar.bz2 | tar xjf - -C /tmp \
&& cd /tmp/pdns-recursor-$POWERDNS_RECURSOR_VERSION \
&& ./configure --sysconfdir=/etc \
&& make install \
\
&& apk del build-deps \
&& cd / && rm -rf /tmp/*
EXPOSE 53 53/udp 8081
ENTRYPOINT ["pdns_recursor", "--setuid=65534", "--setgid=65534", "--write-pid=no", "--disable-syslog=yes"]