X-Git-Url: https://git.openstreetmap.org./dns.git/blobdiff_plain/3820b537b9857f60503349436287705889b26984..51bc98fe8f5eab33f04cf60b456ae0e55b2246c7:/Dockerfile diff --git a/Dockerfile b/Dockerfile index c9f7bdd..8738966 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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.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/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"]