]> git.openstreetmap.org Git - dns.git/blobdiff - Dockerfile
Upgrade to dnscontrol v4.0.1 and remove explicit diff2
[dns.git] / Dockerfile
index 8799bfb9c3d42871f81b55ffef9c75c506639612..f73bc59fa8c44d43039edc5e8a1e1a3b92c31c38 100644 (file)
@@ -8,14 +8,18 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
       libjson-xs-perl \
       jq \
       less \
-      curl
+      curl \
+      ca-certificates
 
-RUN curl -fsSL https://github.com/StackExchange/dnscontrol/releases/download/v3.3.0/dnscontrol-Linux -o /usr/local/bin/dnscontrol \
-    && chmod +x /usr/local/bin/dnscontrol \
-    && /usr/local/bin/dnscontrol version
+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.0.1/dnscontrol-4.0.1.${arch}.deb -o /tmp/dnscontrol.deb \
+    && apt install /tmp/dnscontrol.deb -y
 
 WORKDIR /dns
 ADD . .
-RUN make
 
 VOLUME ["/dns/data"]
+
+CMD ["make", "check"]