]> git.openstreetmap.org Git - dns.git/blobdiff - Dockerfile
Add dummy comment to force rebuild
[dns.git] / Dockerfile
index c987603936f6fed9eae3b7ca5579d7c5f4a81a40..8738966c4be59014457f2883bde4522afbe3894f 100644 (file)
@@ -3,13 +3,23 @@ FROM debian:stable
 RUN apt-get update && apt-get install -y --no-install-recommends \
       make \
       libxml-treebuilder-perl \
 RUN apt-get update && apt-get install -y --no-install-recommends \
       make \
       libxml-treebuilder-perl \
+      libyaml-libyaml-perl \
       libyaml-perl \
       libjson-xs-perl \
       jq \
       libyaml-perl \
       libjson-xs-perl \
       jq \
-      less
+      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/v4.1.0/dnscontrol-4.1.0.${arch}.deb -o /tmp/dnscontrol.deb \
+    && apt install /tmp/dnscontrol.deb -y
 
 WORKDIR /dns
 ADD . .
 
 WORKDIR /dns
 ADD . .
-RUN make
 
 VOLUME ["/dns/data"]
 
 VOLUME ["/dns/data"]
+
+CMD ["make", "check"]