Created
September 23, 2023 13:59
-
-
Save bjoerntx/2f0c166457a15643c3af560a681a50f9 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/dotnet/aspnet:6.0-windowsservercore-ltsc2019 | |
# Copy the application from folder "app" to "C:\app" on container machine | |
COPY app/ /app | |
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | |
RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \ | |
Invoke-WebRequest "https://aka.ms/vs/17/release/vc_redist.x64.exe" -OutFile "vc_redist.x64.exe"; \ | |
Start-Process "vc_redist.x64.exe" -ArgumentList "/passive" -wait -Passthru; \ | |
Remove-Item -Force vc_redist.x64.exe; | |
WORKDIR /app | |
EXPOSE 80 | |
ENTRYPOINT ["dotnet", "MyDockerTXApp.dll"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment