From 18c7681f085bb0debb7d67677f97b6f5642d1137 Mon Sep 17 00:00:00 2001 From: Nikita Skrynnik Date: Fri, 13 Oct 2023 10:32:29 +1100 Subject: [PATCH] make coredns download multiarch Signed-off-by: Nikita Skrynnik --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 69afd83..1e6c4f4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,9 +9,9 @@ ARG BUILDARCH=amd64 RUN rm -r /etc/vpp RUN go install github.com/go-delve/delve/cmd/dlv@v1.8.2 ADD https://github.com/spiffe/spire/releases/download/v1.8.0/spire-1.8.0-linux-${BUILDARCH}-musl.tar.gz . -ADD https://github.com/coredns/coredns/releases/download/v1.9.1/coredns_1.9.1_linux_amd64.tgz . +ADD https://github.com/coredns/coredns/releases/download/v1.9.1/coredns_1.9.1_linux_${BUILDARCH}.tgz . RUN tar xzvf spire-1.8.0-linux-${BUILDARCH}-musl.tar.gz -C /bin --strip=2 spire-1.8.0/bin/spire-server spire-1.8.0/bin/spire-agent -RUN tar xzvf coredns_1.9.1_linux_amd64.tgz -C /bin coredns +RUN tar xzvf coredns_1.9.1_linux_${BUILDARCH}.tgz -C /bin coredns FROM go as build WORKDIR /build