]> git.openstreetmap.org Git - dns.git/blobdiff - Dockerfile
osmf: add SPF include for mailbox.org
[dns.git] / Dockerfile
index 2993781cdc7a01e70c8e1973ae4b47ae1b1ae1a5..8738966c4be59014457f2883bde4522afbe3894f 100644 (file)
@@ -11,11 +11,15 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
       curl \
       ca-certificates
 
-RUN curl -fsSL https://github.com/StackExchange/dnscontrol/releases/download/v3.13.0/dnscontrol_3.13.0_amd64.deb -o /tmp/dnscontrol.deb \
+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 . .
-RUN make preview
 
 VOLUME ["/dns/data"]
+
+CMD ["make", "check"]