Created
September 16, 2018 19:17
-
-
Save pbering/9743b290301332a2c3f664c8dfa3a416 to your computer and use it in GitHub Desktop.
urlrewrite docker reproduce
This file contains hidden or 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
FROM microsoft/aspnet:4.7.2-windowsservercore-1803 | |
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | |
ARG URLREWRITE_MSI='c:\\install\\urlrewrite.msi' | |
ADD http://download.microsoft.com/download/D/D/E/DDE57C26-C62C-4C59-A1BB-31D58B36ADA2/rewrite_amd64_en-US.msi ${URLREWRITE_MSI} | |
RUN Start-Process $env:URLREWRITE_MSI -ArgumentList "/qn", "/l*v", "c:\log.txt" -PassThru | Wait-Process | |
ENTRYPOINT [ "powershell" ] | |
CMD "cat c:\log.txt" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment