Skip to content

Commit f0776ce

Browse files
author
Pavel Purma
committed
Powershell install from the public feed
1 parent 92652a2 commit f0776ce

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/azurelinux/4.0/net11.0/build/amd64/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM mcr.microsoft.com/dotnet/sdk:10.0-azurelinux3.0 AS powershell
22
ENV POWERSHELL_VERSION=7.6.1
3-
RUN dotnet tool install --tool-path /powershell --version ${POWERSHELL_VERSION} PowerShell
3+
ARG DOTNET_PUBLIC_FEED=https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json
4+
RUN dotnet tool install --tool-path /powershell --version ${POWERSHELL_VERSION} PowerShell --source ${DOTNET_PUBLIC_FEED}
45

56
FROM mcr.microsoft.com/azurelinux-beta/base/core:4.0
67

src/azurelinux/4.0/net11.0/crossdeps/amd64/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM mcr.microsoft.com/dotnet/sdk:10.0-azurelinux3.0 AS powershell
22
ENV POWERSHELL_VERSION=7.6.1
3-
RUN dotnet tool install --tool-path /powershell --version ${POWERSHELL_VERSION} PowerShell
3+
ARG DOTNET_PUBLIC_FEED=https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json
4+
RUN dotnet tool install --tool-path /powershell --version ${POWERSHELL_VERSION} PowerShell --source ${DOTNET_PUBLIC_FEED}
45

56
FROM mcr.microsoft.com/azurelinux-beta/base/core:4.0
67

0 commit comments

Comments
 (0)