X-Git-Url: https://git.openstreetmap.org./dns.git/blobdiff_plain/5584cb7ad23e6928ac58ee0a937a2d9b3b0a282e..07fd9a8c68c897025186cc4ebc6c0055c4eff664:/Dockerfile diff --git a/Dockerfile b/Dockerfile index 15a13ba..8738966 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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.20.0/dnscontrol_3.20.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"]