]> git.openstreetmap.org Git - dns.git/blob - Dockerfile
Add PTR RFC4183 documentation link
[dns.git] / Dockerfile
1 FROM debian:stable
2
3 RUN apt-get update && apt-get install -y --no-install-recommends \
4       make \
5       libxml-treebuilder-perl \
6       libyaml-libyaml-perl \
7       libyaml-perl \
8       libjson-xs-perl \
9       jq \
10       less \
11       curl \
12       ca-certificates
13
14 SHELL ["/bin/bash", "-o", "pipefail", "-c"]
15
16 RUN arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) \
17     && curl -fsSL https://github.com/StackExchange/dnscontrol/releases/download/v3.20.0/dnscontrol-3.20.0.${arch}.deb -o /tmp/dnscontrol.deb \
18     && apt install /tmp/dnscontrol.deb -y
19
20 WORKDIR /dns
21 ADD . .
22
23 VOLUME ["/dns/data"]
24
25 CMD ["make", "check"]