From ae4e5408ea01d507d8d1bc433b67557363cc8fb5 Mon Sep 17 00:00:00 2001 From: Mario Finelli Date: Thu, 5 Oct 2023 21:57:30 +0200 Subject: [PATCH] Add patch to fix build until next release --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7c51347..eb0be8b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,9 +5,11 @@ ARG AZCOPY_VERSION=10.21.0 ENV AZCOPY_VERSION=$AZCOPY_VERSION RUN \ - apk --no-cache add curl && \ + apk --no-cache add curl patch && \ curl -LO https://github.com/Azure/azure-storage-azcopy/archive/v${AZCOPY_VERSION}.tar.gz && \ + curl -LO https://patch-diff.githubusercontent.com/raw/Azure/azure-storage-azcopy/pull/2393.patch && \ tar zxf v${AZCOPY_VERSION}.tar.gz --strip-components=1 && \ + patch -p1 -i 2393.patch && \ go mod vendor && \ go build -o azcopy -mod=readonly -ldflags="-s -w" && \ ./azcopy --version