update powershell

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-09-14 11:24:10 -04:00
parent 3cf8176a1f
commit 6a59d5907d
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3

View File

@ -18,7 +18,7 @@ RUN apt-get update && apt-get install -y \
RUN cd /usr/src \
&& wget "https://github.com/PowerShell/PowerShell/releases/download/v${POWERSHELL_VERSION}/powershell_${POWERSHELL_VERSION}-1.debian.9_amd64.deb" -O /tmp/powershell.deb \
&& dpkg -i /tmp/powershell.deb \
&& ln -snf "/opt/microsoft/powershell/${POWERSHELL_VERSION}/pwsh" /usr/bin/pwsh \
&& ln -snf "/opt/microsoft/powershell/6/pwsh" /usr/bin/pwsh \
&& apt-get install -fy \
&& rm -rf /var/lib/apt/lists/* /usr/src/* /tmp/powershell.deb