Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions pkg/azurefileplugin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Comment thread
andyzhangx marked this conversation as resolved.
| tar xvzf - --strip-components=1 -C /usr/local/bin/ --wildcards "*/azcopy"

FROM base
Expand Down
Loading