X-Git-Url: https://git.openstreetmap.org./dns.git/blobdiff_plain/1d6f8a21b543dc7cfeedb3d853cee0bd1f099c1d..6a620ed4fb266cc94e26f385a7d4e46b8b9ab07c:/Dockerfile?ds=sidebyside diff --git a/Dockerfile b/Dockerfile index c987603..8738966 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,13 +3,23 @@ FROM debian:stable RUN apt-get update && apt-get install -y --no-install-recommends \ make \ libxml-treebuilder-perl \ + libyaml-libyaml-perl \ libyaml-perl \ libjson-xs-perl \ jq \ - less + less \ + curl \ + ca-certificates + +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 VOLUME ["/dns/data"] + +CMD ["make", "check"]