]> git.openstreetmap.org Git - dns.git/blobdiff - Dockerfile
Remove noisy check for now (as polluting cron)
[dns.git] / Dockerfile
index c9f7bdd0ddba986c7965751dd9e40165d9de7ef8..4185fbd8e68c1ed157bb41330e5ee617310d2b25 100644 (file)
@@ -8,14 +8,18 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
       libjson-xs-perl \
       jq \
       less \
       libjson-xs-perl \
       jq \
       less \
-      curl
+      curl \
+      ca-certificates
 
 
-RUN curl -fsSL https://github.com/StackExchange/dnscontrol/releases/download/v3.9.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/v3.20.0/dnscontrol-3.20.0.${arch}.deb -o /tmp/dnscontrol.deb \
+    && apt install /tmp/dnscontrol.deb -y
 
 WORKDIR /dns
 ADD . .
 
 WORKDIR /dns
 ADD . .
-RUN make preview
 
 VOLUME ["/dns/data"]
 
 VOLUME ["/dns/data"]
+
+CMD ["make", "check"]