File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11# See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
22
33FROM mcr.microsoft.com/dotnet/runtime:7.0-alpine AS base
4- # install powershell as per https://docs.microsoft.com/en-us/powershell/scripting/install/install-alpine?view=powershell-7.2
4+ # install powershell as per https://docs.microsoft.com/en-us/powershell/scripting/install/install-alpine
5+ ARG PWSH_VERSION=7.3.6
56RUN apk add --no-cache \
67 ca-certificates \
78 less \
@@ -17,7 +18,7 @@ RUN apk add --no-cache \
1718 icu-libs \
1819 curl
1920RUN apk -X https://dl-cdn.alpinelinux.org/alpine/edge/main add --no-cache lttng-ust
20- RUN curl -L https://github.com/PowerShell/PowerShell/releases/download/v7.2.2 /powershell-7.2.2 -linux-alpine-x64.tar.gz -o /tmp/powershell.tar.gz
21+ RUN curl -L https://github.com/PowerShell/PowerShell/releases/download/v${PWSH_VERSION} /powershell-${PWSH_VERSION} -linux-alpine-x64.tar.gz -o /tmp/powershell.tar.gz
2122RUN mkdir -p /opt/microsoft/powershell/7
2223RUN tar zxf /tmp/powershell.tar.gz -C /opt/microsoft/powershell/7
2324RUN chmod +x /opt/microsoft/powershell/7/pwsh
You can’t perform that action at this time.
0 commit comments