diff --git a/.trivyignore b/.trivyignore deleted file mode 100644 index 288dc56b55..0000000000 --- a/.trivyignore +++ /dev/null @@ -1,3 +0,0 @@ -CVE-2023-39325 -CVE-2023-44487 -GHSA-m425-mq94-257g diff --git a/pkg/azurefileplugin/Dockerfile b/pkg/azurefileplugin/Dockerfile index 5bde437798..f83b18a6f1 100644 --- a/pkg/azurefileplugin/Dockerfile +++ b/pkg/azurefileplugin/Dockerfile @@ -18,17 +18,18 @@ ARG ARCH=amd64 ARG binary=./_output/${ARCH}/azurefileplugin COPY ${binary} /azurefileplugin -RUN apt update && apt upgrade -y && apt-mark unhold libcap2 && clean-install ca-certificates cifs-utils util-linux e2fsprogs mount udev xfsprogs nfs-common netbase curl +RUN apt update && apt upgrade -y && apt-mark unhold libcap2 && clean-install ca-certificates cifs-utils util-linux e2fsprogs mount udev xfsprogs nfs-common netbase wget # install azcopy -ARG azcopyURL=https://aka.ms/downloadazcopy-v10-linux +ARG azcopyURL=https://azcopyvnext.azureedge.net/releases/release-10.21.2-20231106/azcopy_linux_amd64_10.21.2.tar.gz RUN if [ "$ARCH" == "arm64" ] ; then \ - azcopyURL=${azcopyURL}"-arm64"; fi -RUN curl -sL ${azcopyURL} | tar -xz && \ + azcopyURL=https://azcopyvnext.azureedge.net/releases/release-10.21.2-20231106/azcopy_linux_arm64_10.21.2.tar.gz; fi +RUN wget -O azcopy.tar.gz ${azcopyURL} && \ + tar xvzf azcopy.tar.gz -C . && rm azcopy.tar.gz && \ mv ./azcopy_linux_$ARCH_*/azcopy /usr/local/bin/azcopy && \ rm -rf ./azcopy_linux_$ARCH_* RUN chmod +x /usr/local/bin/azcopy -RUN apt remove curl -y +RUN apt remove wget -y LABEL maintainers="andyzhangx" LABEL description="AzureFile CSI Driver"