注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > 聚石塔

Windows容器.net镜像参考

更新时间:2023/05/04 访问次数:4227
FROM microsoft/iis
RUN dism /online /enable-feature /all /featurename:IIS-ASPNET45 /featurename:NetFx4Extended-ASPNET45 /featurename:IIS-WebServerRole /featurename:IIS-WebServer /featurename:IIS-CommonHttpFeatures /featurename:IIS-Security /featurename:IIS-RequestFiltering /featurename:IIS-StaticContent /featurename:IIS-DefaultDocument /featurename:IIS-ApplicationDevelopment /featurename:IIS-NetFxExtensibility45 /featurename:IIS-ISAPIExtensions /featurename:IIS-ISAPIFilter /featurename:IIS-HealthAndDiagnostics /featurename:IIS-HttpLogging /featurename:IIS-LoggingLibraries /featurename:IIS-HttpCompressionStatic /featurename:IIS-WebServerManagementTools /featurename:IIS-ManagementConsole /featurename:Server-Core /featurename:NetFx4ServerFeatures /featurename:NetFx4 /featurename:NetFx4Extended-ASPNET45 /featurename:WCF-TCP-PortSharing45 /NoRestart
RUN curl -fSLo dotnet-framework-installer.exe https://download.visualstudio.microsoft.com/download/pr/7afca223-55d2-470a-8edc-6a1739ae3252/abd170b4b0ec15ad0222a809b761a036/ndp48-x86-x64-allos-enu.exe && .\dotnet-framework-installer.exe /q && del .\dotnet-framework-installer.exe && powershell Remove-Item -Force -Recurse ${Env:TEMP}\*
RUN /windows/system32/inetsrv/appcmd.exe set config /section:system.applicationHost/sites /siteDefaults.logFile.logExtFileFlags:"Date, Time, ClientIP, UserName, SiteName, ServerIP, Method, UriStem, UriQuery, HttpStatus, Win32Status, TimeTaken, ServerPort, UserAgent, Referer, HttpSubStatus"  /commit:apphost
 
# deploy webapp
COPY publish/Jst.GateWay.Web /inetpub/wwwroot/Jst.GateWay.Web
COPY publish/Jst.Jdd.Api.Common /inetpub/wwwroot/Jst.Jdd.Api.Common
COPY publish/Jst.Jdd.Api.Order /inetpub/wwwroot/Jst.Jdd.Api.Order
COPY publish/qianniu-apppools.xml /inetpub/qianniu-apppools.xml
COPY publish/qianniu-sites.xml /inetpub/qianniu-sites.xml
RUN /windows/system32/inetsrv/appcmd delete site "Default Web Site"
RUN /windows/system32/inetsrv/appcmd.exe add apppool /in < /inetpub/qianniu-apppools.xml
RUN /windows/system32/inetsrv/appcmd.exe add site /in < /inetpub/qianniu-sites.xml
RUN cacls /inetpub/wwwroot /t /e /c /g IIS_IUSRS:f

VOLUME ["c:/inetpub/logs/LogFiles"]
 
EXPOSE 80
 
ENTRYPOINT ["C:\\ServiceMonitor.exe", "w3svc"]


FAQ

关于此文档暂时还没有FAQ
返回
顶部