<filename>Web-API/Docker/Dockerfile<gh_stars>1-10
# https://anthonychu.ca/post/aspnet-web-config-transforms-windows-containers-revisited/
# Here's the Dockerfile to create our custom version of microsoft/aspnet that includes the ability to apply configuration transformation
FROM microsoft/aspnet:4.7.1-windowsservercore-1709

WORKDIR /
RUN $ProgressPreference = 'SilentlyContinue'; \
    Invoke-WebRequest https://dist.nuget.org/win-x86-commandline/latest/nuget.exe -OutFile \Windows\nuget.exe; \
    $ProgressPreference = 'Continue'; \
    \Windows\nuget.exe install WebConfigTransformRunner -Version 1.0.0.1

RUN md c:\aspnet-startup
COPY . c:/aspnet-startup
ENTRYPOINT ["powershell.exe", "c:\\aspnet-startup\\Startup.ps1"]