diff --git a/Dockerfile b/Dockerfile index 9e64ecd1c3..c2f8d6a686 100644 --- a/Dockerfile +++ b/Dockerfile @@ -110,9 +110,9 @@ RUN apt-get update \ && apt-get install -y ca-certificates wget curl git jq libprotobuf-dev libnl-route-3-dev unzip build-essential unixodbc xmlsec1 \ && rm -rf /var/lib/apt/lists/* -RUN [ "$TARGETPLATFORM" == "linux/amd64" ] && apt-get update -y && apt install libicu-dev -y && wget -O 'pwsh.deb' 'https://github.com/PowerShell/PowerShell/releases/download/v7.3.5/powershell_7.3.5-1.deb_amd64.deb' && \ +RUN if [ "$TARGETPLATFORM" == "linux/amd64" ]; then apt-get update -y && apt install libicu-dev -y && wget -O 'pwsh.deb' 'https://github.com/PowerShell/PowerShell/releases/download/v7.3.5/powershell_7.3.5-1.deb_amd64.deb' && \ dpkg --install 'pwsh.deb' && \ - rm 'pwsh.deb' || true + rm 'pwsh.deb'; else echo 'pwshell not on amd64'; fi RUN arch="$(dpkg --print-architecture)"; arch="${arch##*-}"; \ wget https://get.helm.sh/helm-v3.12.0-linux-$arch.tar.gz && \