Skip to content

Instantly share code, notes, and snippets.

@jozefizso
Last active April 21, 2023 09:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jozefizso/fc16c64e9df4ef154c89d5908ff16543 to your computer and use it in GitHub Desktop.
Save jozefizso/fc16c64e9df4ef154c89d5908ff16543 to your computer and use it in GitHub Desktop.
# 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