I’ve tried to create a docker image with the application of my company. An ASPNET application. I used this configuration:
FROM microsoft/windowsservercore:ltsc2016 SHELL ["powershell"] RUN Install-WindowsFeature NET-Framework-45-ASPNET ; \ Install-WindowsFeature Web-Asp-Net45 RUN mkdir c:/inetpub/wwwroot/app COPY /RELEASE/ c:/inetpub/wwwroot/app RUN Remove-WebSite -Name 'Default Web Site' RUN NEW-WebSite -Name 'apptest' -Port 8085 -PhysicalPath 'c:\inetpub\wwwroot\app' -ApplicationPool '.NET v4.5'
Well… When I run the application, the index page came. But all the other files cannot up (the css files, the js files… all this files becomes in sub-folders). So, just the principal file index, in the root (or the files in the root) can be accessed.
I realize taht when I run the DevTools from Chrome, and, in the Sources, it has the references from the sub-folders and the archives, but, when I click in then, all of them is blank (its not occur in the IIS in the Windows Server system, just in the docker).
Can anyone help me with that?