-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
62 lines (53 loc) · 1.54 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
FROM harbor.crystalnet.org/dockerhub-proxy/alpine:3.19 AS builder
# renovate: datasource=github-tags depName=PowerDNS/pdns extractVersion=^auth-(?<version>.*)$ versioning=semver
ENV POWERDNS_VERSION=4.8.4
RUN apk --update --no-cache add \
bash \
libpq \
libstdc++ \
libgcc \
mariadb-client \
mariadb-connector-c \
lua-dev \
curl-dev \
g++ \
make \
mariadb-dev \
postgresql-dev \
curl \
boost-dev \
mariadb-connector-c-dev \
libsodium-dev
RUN curl -sSL https://downloads.powerdns.com/releases/pdns-$POWERDNS_VERSION.tar.bz2 | tar xj -C /tmp && \
cd /tmp/pdns-$POWERDNS_VERSION && \
./configure \
--prefix="/opt/pdns" \
--exec-prefix="/opt/pdns" \
--sysconfdir="/etc/pdns" \
--disable-lua-records \
--without-tools \
--without-sqlite3 \
--without-systemd \
--with-libsodium \
--with-socketdir=/tmp \
--with-modules="bind gmysql gpgsql pipe" && \
make -j8 && make install-strip && \
rm /opt/pdns/share -r && \
ls /opt/*
FROM harbor.crystalnet.org/dockerhub-proxy/alpine:3.19
LABEL author="Lukas Wingerberg"
LABEL author_email="[email protected]"
RUN apk --update --no-cache add \
bash \
libpq \
libstdc++ \
mariadb-connector-c \
lua-dev \
libsodium \
libcurl
RUN addgroup -S pdns 2>/dev/null && \
adduser -S -D -H -h /var/empty -s /bin/false -G pdns -g pdns pdns 2>/dev/null
COPY --from=builder /opt /opt
ADD rootfs/ /
EXPOSE 10353/tcp 10353/udp
ENTRYPOINT ["/entrypoint.sh"]