How to install .Net 4.7.1 using docker

Copy the the offline installer to your build folder where the docker file is then run

This will install and remove the installation file from the image.

# Install NET 4.7.1

COPY NDP471-KB4033342-x86-x64-AllOS-ENU.exe /NDP471-KB4033342-x86-x64-AllOS-ENU.exe
RUN powershell Start-Process NDP471-KB4033342-x86-x64-AllOS-ENU.exe /q
RUN powershell Remove-Item c:\NDP471-KB4033342-x86-x64-AllOS-ENU.exe -Force

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.