File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed
Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -67,14 +67,13 @@ RUN useradd -ms /bin/bash ${NORMAL_USER} && \
6767 sudo dpkg -i cosign_${LATEST_VERSION}_amd64.deb
6868
6969# Install PowerShell
70- ARG DEBIAN_VERSION=$(grep '^VERSION_ID=' /etc/os-release | cut -d= -f2 | tr -d '"' )
71- RUN curl -sSL "https://packages.microsoft.com/config/debian/${DEBIAN_VERSION}/packages-microsoft-prod.deb" \
72- -o packages-microsoft-prod.deb \
73- && dpkg -i packages-microsoft-prod.deb \
74- && rm packages-microsoft-prod.deb \
75- && apt-get update \
76- && apt-get install -y powershell \
77- && ln -sf /usr/bin/pwsh /usr/bin/powershell
70+ RUN DEBIAN_VERSION=$(grep '^VERSION_ID=' /etc/os-release | cut -d= -f2 | tr -d '"' ) && \
71+ curl -sSL "https://packages.microsoft.com/config/debian/$DEBIAN_VERSION/packages-microsoft-prod.deb" -o packages-microsoft-prod.deb && \
72+ dpkg -i packages-microsoft-prod.deb && \
73+ rm packages-microsoft-prod.deb && \
74+ apt-get update && \
75+ apt-get install -y powershell && \
76+ ln -sf /usr/bin/pwsh /usr/bin/powershell
7877
7978# Install Azure Modules for Powershell - This can take a while, so setting as final step to shorten potential rebuilds
8079RUN pwsh -Command Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted && \
Original file line number Diff line number Diff line change 1- FROM mcr.microsoft.com/windows/servercore :ltsc2025
1+ FROM mcr.microsoft.com/windows/server :ltsc2025
22
33# escape=`
44
File renamed without changes.
You can’t perform that action at this time.
0 commit comments