]> git.openstreetmap.org Git - dns.git/blobdiff - Dockerfile
Point welcome at naga
[dns.git] / Dockerfile
index 72de5d53c7db36526ef5f68cf91a6a4e4d42e673..2c0cc88b904689667711d4212f5b8292da6fb08d 100644 (file)
@@ -3,11 +3,23 @@ FROM debian:stable
 RUN apt-get update && apt-get install -y --no-install-recommends \
       make \
       libxml-treebuilder-perl \
+      libyaml-libyaml-perl \
       libyaml-perl \
-      libjson-xs-perl
+      libjson-xs-perl \
+      jq \
+      less \
+      curl \
+      ca-certificates
+
+SHELL ["/bin/bash", "-o", "pipefail", "-c"]
+
+RUN arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) \
+    && curl -fsSL https://github.com/StackExchange/dnscontrol/releases/download/v3.22.0/dnscontrol-3.22.0.${arch}.deb -o /tmp/dnscontrol.deb \
+    && apt install /tmp/dnscontrol.deb -y
 
 WORKDIR /dns
 ADD . .
-RUN make
 
 VOLUME ["/dns/data"]
+
+CMD ["make", "check"]