File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,10 @@ ENV NUGET_XMLDOC_MODE=
1010# They are installed by the base image (mcr.microsoft.com/dotnet/sdk) which does not have the patch.
1111# https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-0057
1212RUN apt-get update && \
13- wget https://github.com/PowerShell/PowerShell/releases/download/v7.4.1/powershell_7.4.1-1.deb_amd64.deb && \
14- dpkg -i powershell_7.4.1-1.deb_amd64.deb && \
13+ apt-get install -y wget && \
14+ ARCHITECTURE=$(dpkg --print-architecture) && \
15+ POWERSHELL_FILE_NAME="powershell_7.4.1-1.deb_${ARCHITECTURE}.deb" && \
16+ wget https://github.com/PowerShell/PowerShell/releases/download/v7.4.1/${POWERSHELL_FILE_NAME} && \
17+ dpkg -i ${POWERSHELL_FILE_NAME} && \
1518 apt-get install -f && \
16- rm powershell_7.4.1-1.deb_amd64.deb
19+ rm ${POWERSHELL_FILE_NAME}
You can’t perform that action at this time.
0 commit comments