Last active
April 21, 2023 09:48
-
-
Save jozefizso/fc16c64e9df4ef154c89d5908ff16543 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# escape=` | |
# Copyright 2023 Cisco Systems, Inc. | |
FROM mcr.microsoft.com/windows/servercore:ltsc2022 | |
USER ContainerAdministrator | |
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | |
# Install Visual C++ Runtime | |
RUN Invoke-WebRequest "https://aka.ms/vs/17/release/vc_redist.x86.exe" -OutFile "vcredist_x86.exe"; ` | |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; ` | |
Start-Process -filepath "C:\vcredist_x86.exe" -ArgumentList "/install", "/passive", "/norestart" -Passthru | Wait-Process; ` | |
Remove-Item -Force vcredist_x86.exe; | |
# Install Signing Tools from Windows SDK | |
COPY "Windows SDK Signing Tools-x86_en-us.msi" "C:/installers/Windows SDK Signing Tools-x86_en-us.msi" | |
RUN Start-Process 'C:\\installers\\Windows SDK Signing Tools-x86_en-us.msi' '/qn' -PassThru | Wait-Process; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment