Last active
October 7, 2022 14:17
-
-
Save bjoerntx/c3e274623cd18843dd4cd9881246d6c7 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
FROM mcr.microsoft.com/windows:ltsc2019 | |
# Copy the zip folder application to "C:\" on container machine | |
COPY DS-0300-XB.zip DS-0300-XB.zip | |
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | |
# Unzip the application to "C:\DocumentServices" | |
RUN Expand-Archive -Path DS-0300-XB.zip -DestinationPath C:\DocumentServices | |
# Download and install Visual C++ Redistributable Packages for Visual Studio 2013 | |
RUN Invoke-WebRequest -OutFile vc_redist.x64.exe https://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x64.exe; \ | |
Start-Process "vc_redist.x64.exe" -ArgumentList "/passive" -wait -Passthru; \ | |
del vc_redist.x64.exe | |
# Download and install Visual C++ Redistributable Packages for Visual Studio 2015 | |
RUN Invoke-WebRequest -OutFile vc_redist.x64.exe https://download.microsoft.com/download/6/A/A/6AA4EDFF-645B-48C5-81CC-ED5963AEAD48/vc_redist.x64.exe; \ | |
Start-Process "vc_redist.x64.exe" -ArgumentList "/passive" -wait -Passthru; \ | |
del vc_redist.x64.exe | |
# Install ASP.NET Core Runtime | |
# Checksum and direct link from: https://dotnet.microsoft.com/permalink/dotnetcore-current-windows-runtime-bundle-installer | |
RUN Invoke-WebRequest -OutFile dotnet-hosting-6.0.9-win.exe https://download.visualstudio.microsoft.com/download/pr/eaa3eab9-cc21-44b5-a4e4-af31ee73b9fa/d8ad75d525dec0a30b52adc990796b11/dotnet-hosting-6.0.9-win.exe; \ | |
Start-Process "dotnet-hosting-6.0.9-win.exe" -ArgumentList "/passive" -wait -Passthru; \ | |
Remove-Item -Force dotnet-hosting-6.0.9-win.exe; | |
# Remove files | |
RUN del DS-0300-XB.zip | |
# Start Document Services | |
WORKDIR /DocumentServices | |
ENTRYPOINT ["dotnet", "TXTextControl.DocumentServices.dll"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment