Skip to content

Commit c16a1fa

Browse files
authored
Upgrade pwsh used by GitHub Docker action to 7.3.6 (#42)
1 parent 518c693 commit c16a1fa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
22

33
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
56
RUN apk add --no-cache \
67
ca-certificates \
78
less \
@@ -17,7 +18,7 @@ RUN apk add --no-cache \
1718
icu-libs \
1819
curl
1920
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
2122
RUN mkdir -p /opt/microsoft/powershell/7
2223
RUN tar zxf /tmp/powershell.tar.gz -C /opt/microsoft/powershell/7
2324
RUN chmod +x /opt/microsoft/powershell/7/pwsh

0 commit comments

Comments
 (0)