wcf-docker/4.7.2-windowsservercore-1803/runtime/Dockerfile

13 строки
558 B
Docker

FROM mcr.microsoft.com/dotnet/framework/aspnet:4.7.2-windowsservercore-1803
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
# Install Windows components required for WCF service hosted on IIS
RUN Add-WindowsFeature NET-WCF-TCP-Activation45; \
Add-WindowsFeature NET-WCF-HTTP-Activation45; \
Add-WindowsFeature Web-WebSockets
# Enable net.tcp protocol for default web site on IIS
RUN windows\system32\inetsrv\appcmd.exe set app 'Default Web Site/' /enabledProtocols:"http,net.tcp"
EXPOSE 808