Created
September 3, 2019 13:42
-
-
Save bjoerntx/51d97a9cee5e05825237ca17ead5bfad 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
## https://hub.docker.com/_/microsoft-windows ## | |
FROM mcr.microsoft.com/windows:1903 | |
################## BEGIN INSTALLATION ###################### | |
ENTRYPOINT ["powershell"] | |
SHELL ["powershell"] | |
## Enables IIS and ASP.NET ## | |
RUN Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerRole | |
RUN Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServer | |
RUN Enable-WindowsOptionalFeature -Online -FeatureName IIS-CommonHttpFeatures | |
RUN Enable-WindowsOptionalFeature -online -FeatureName NetFx4Extended-ASPNET45 | |
RUN Enable-WindowsOptionalFeature -Online -FeatureName IIS-NetFxExtensibility45 | |
RUN Enable-WindowsOptionalFeature -Online -FeatureName IIS-ISAPIExtensions | |
RUN Enable-WindowsOptionalFeature -Online -FeatureName IIS-ISAPIFilter | |
RUN Enable-WindowsOptionalFeature -Online -FeatureName IIS-ASPNET45 | |
## Install VC++ 2013 Redistributables x64 ## | |
COPY Dependencies/vcredist_x64.exe /temp/vcredist_x64.exe | |
RUN Start-Process "C:/Temp/vcredist_x64.exe" -ArgumentList "/passive" -wait -Passthru | |
## Install the TX Text Control Service ## | |
COPY SyncService/ /SyncService/ | |
RUN Start-Process "C:/SyncService/txregwebsvr.exe" '/i + /e + /w' -wait | |
## Copy the Web application ## | |
COPY wwwroot/ /inetpub/wwwroot/ | |
## Create the TX Text Control web application ## | |
RUN New-WebApplication -Name TextControlWebApp -Site 'Default Web Site' | |
-PhysicalPath C:\inetpub\wwwroot\TextControlWebApp -ApplicationPool DefaultAppPool | |
## Cleanup ## | |
RUN Remove-Item –path C:\Temp –recurse | |
##################### INSTALLATION END ##################### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment