While trying to build the below Docker Image in Azure DevOps using the Microsoft hosted agent “windows-latest” or “windows-2019” getting below error
Docker file content is
# escape=`
FROM mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2019
# Install Powershell
RUN powershell -Command "Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope LocalMachine"
# Install Nuget package provider
RUN powershell -Command "Install-PackageProvider -Name NuGet -Force -Scope AllUsers"
WORKDIR /azp/
COPY ./start.ps1 ./
CMD powershell .start.ps1
Could anyone help with why a windows image is failing to build in windows agent?
Did tried changing the agent from “windows-latest” to “windows-2019” but of no help