diff --git a/pkg/azurefileplugin/Dockerfile b/pkg/azurefileplugin/Dockerfile index 09038e1cd3..a3436154f6 100644 --- a/pkg/azurefileplugin/Dockerfile +++ b/pkg/azurefileplugin/Dockerfile @@ -13,17 +13,19 @@ # limitations under the License. ARG ARCH=amd64 +ARG BUILDPLATFORM=linux/amd64 +ARG BASE_IMAGE=registry.k8s.io/build-image/debian-base:bookworm-v1.0.7 -FROM registry.k8s.io/build-image/debian-base:bookworm-v1.0.7 AS base +FROM ${BASE_IMAGE} AS base -FROM base AS builder +FROM --platform=$BUILDPLATFORM ${BASE_IMAGE} AS builder -ARG ARCH +ARG TARGETARCH=amd64 RUN apt update \ && apt install -y curl \ && curl -Lso /tmp/packages-microsoft-prod-22.04.deb https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb \ - && curl -Ls https://github.com/Azure/azure-storage-azcopy/releases/download/v10.32.4/azcopy_linux_${ARCH}_10.32.4.tar.gz \ + && curl -Ls https://github.com/Azure/azure-storage-azcopy/releases/download/v10.32.4/azcopy_linux_${TARGETARCH}_10.32.4.tar.gz \ | tar xvzf - --strip-components=1 -C /usr/local/bin/ --wildcards "*/azcopy" FROM base