Skip to content

Commit

Permalink
Install .NET framework
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Aug 19, 2024
1 parent 7ab8e58 commit 156799a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions windows/package-i686/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ FROM mcr.microsoft.com/windows/servercore:$WIN_VERSION

COPY --from=MSYS2_download C:/msys64 C:/msys64

# Install .NET runtime for i686
RUN powershell -Command "\
Invoke-WebRequest -Uri 'https://dot.net/v1/dotnet-install.ps1' -OutFile C:/windows/temp/dotnet-install.ps1' -ErrorAction Stop; \
C:/windows/temp/dotnet-install.ps1 -Architecture x86"

# Download Windows 10 SDK and install only `signtool.exe`
ARG SDK_URL="https://go.microsoft.com/fwlink/p/?linkid=2196241"
ARG SDK_EXE="C:/windows/temp/winsdksetup.exe"
Expand Down
5 changes: 5 additions & 0 deletions windows/package-x86_64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ FROM mcr.microsoft.com/windows/servercore:$WIN_VERSION

COPY --from=MSYS2_download C:/msys64 C:/msys64

# Install .NET runtime for x86_64
RUN powershell -Command "\
Invoke-WebRequest -Uri 'https://dot.net/v1/dotnet-install.ps1' -OutFile C:/windows/temp/dotnet-install.ps1' -ErrorAction Stop; \
C:/windows/temp/dotnet-install.ps1 -Architecture x64"

# Download Windows 10 SDK and install only `signtool.exe`
ARG SDK_URL="https://go.microsoft.com/fwlink/p/?linkid=2196241"
ARG SDK_EXE="C:/windows/temp/winsdksetup.exe"
Expand Down

0 comments on commit 156799a

Please sign in to comment.