Skip to content

Instantly share code, notes, and snippets.

@nam20485
Created February 21, 2021 02:35
Show Gist options
  • Save nam20485/adc7d2986fdbdc4dbd7d3b5869d9418d to your computer and use it in GitHub Desktop.
Save nam20485/adc7d2986fdbdc4dbd7d3b5869d9418d to your computer and use it in GitHub Desktop.
Download and install .MSI installer in Dockerfile
RUN Write-Host 'Downloading iisnode' ; \
$MsiFile = $env:Temp + '\iisnode.msi' ; \
(New-Object Net.WebClient).DownloadFile('https://github.com/tjanczuk/iisnode/releases/download/v0.2.21/iisnode-full-v0.2.21-x64.msi', $MsiFile) ; \
Write-Host 'Installing iisnode' ; \
Start-Process msiexec.exe -ArgumentList '/i', $MsiFile, '/quiet', '/norestart' -NoNewWindow -Wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment