microsoft / dotnet-framework-docker

The repo for the official docker images for .NET Framework on Windows Server Core.
https://hub.docker.com/_/microsoft-dotnet-framework
MIT License
710 stars 335 forks source link

Using build function from mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2019 throws an error #901

Closed Rishitha-09 closed 2 years ago

Rishitha-09 commented 2 years ago

Hi, I am trying to build a dockerfile using windows image,but when I try to use the build function it throws an error.

The error is: Screenshot (11) And I also tried it by switching to windows container. When I was trying to install some packages and tools through docker file I am unable to install them using that windows image but its working through commandline.

My Dockerfile is:

FROM mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2019 RUN mkdir C:\Users\Devops ENV AWS_ACCESS_KEY_ID=xxxxxxxxxxxx ENV AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxx ENV AWS_DEFAULT_REGION=us-east-1 RUN choco update && choco install -y awscli RUN aws s3 cp s3://tecmfa123/nuget.exe C:\Users\Devops RUN choco install nuget -y RUN nuget install Costura.Fody RUN aws s3 cp s3://tecmfa123/wix311.exe C:\Users\Devops RUN aws s3 cp s3://tecmfa123/Votive2019.vsix C:\Users\Devops RUN aws s3 cp s3://tecmfa123/VSIXInstaller.exe C:\Users\Devops RUN wix311.exe /install /quiet /norestart RUN VSIXInstaller.exe Votive2017.vsix /quiet

Can Someone help me?

Thanks