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 1
1
# See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
2
2
3
3
FROM 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
5
6
RUN apk add --no-cache \
6
7
ca-certificates \
7
8
less \
@@ -17,7 +18,7 @@ RUN apk add --no-cache \
17
18
icu-libs \
18
19
curl
19
20
RUN 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
21
22
RUN mkdir -p /opt/microsoft/powershell/7
22
23
RUN tar zxf /tmp/powershell.tar.gz -C /opt/microsoft/powershell/7
23
24
RUN chmod +x /opt/microsoft/powershell/7/pwsh
You can’t perform that action at this time.
0 commit comments