Dockerize ASP Classic on IIS

后端 未结 3 1814
没有蜡笔的小新
没有蜡笔的小新 2021-01-30 11:22

Microsoft has been investing in running docker on windows with Docker Desktop for Windows. Is it possible to run a legacy ASP Classic application on IIS through

3条回答
  •  误落风尘
    2021-01-30 12:14

    I haven't tried, but it shouldn't be an issue to run classic ASP. The microsoft/iis image is based from the microsoft/windowsservercore image, which is a full Server Core install, and also includes 32-bit support.

    The ASP feature won't be there by default, so your Dockerfile would have to start like this:

    # escape=`
    FROM microsoft/iis
    SHELL ["powershell", "-command"]
    RUN Install-WindowsFeature Web-ASP
    

    (The escape and SHELL lines just make it easier to build Windows-friendy Dockerfiles, see Windows, Dockerfiles and the Backtick Backslash Backlash).

    Then you would COPY in your ASP app folder, and run the rest of your IIS setup with PowerShell commands. This question has some good pointers, and this Dockerfile for an ASP.NET app shows how you can use PowerShell to configure websites.

提交回复
热议问题