I am trying to create a container for nunit-console in windows container. Below is the docker file I have created, but I am not able to run the “nunit-console.exe” using docker run command. It is neither giving any error or results, the command wait for sometime and exits. What is wrong with the docker file?
FROM microsoft/windowsservercore
LABEL version="1.0.0.0"
ENV NUNIT_VERSION 2.6.4
SHELL [“powershell”, “-Command”]
RUN Powershell.exe mkdir C:\tmp\nunit
RUN Powershell.exe mkdir C:\tmp\dotnet
RUN Powershell.exe mkdir C:\Nuget
RUN Powershell.exe mkdir C:\nunit
RUN powershell.exe Invoke-WebRequest “https://download.microsoft.com/download/0/6/1/061F001C-8752-4600-A198-53214C69B51F/dotnetfx35setup.exe” -OutFile “C:\tmp\dotnet\dotnetfx35setup.exe” -UseBasicParsing
RUN powershell.exe Invoke-WebRequest “https://dist.nuget.org/win-x86-commandline/latest/nuget.exe” -OutFile “C:\Nuget\nuget.exe” -UseBasicParsing
RUN Powershell.exe “C:\tmp\dotnet\dotnetfx35setup.exe /q”
RUN & “C:\Nuget\nuget.exe” Install MSBuild.Microsoft.VisualStudio.Web.targets -Version 12.0.4
RUN & “C:\Nuget\nuget.exe” Install NUnit -Version 2.6.4 -o C:/tmp/nunit
RUN & “C:\Nuget\nuget.exe” Install NUnit.Runners -Version 2.6.4 -o C:/tmp/nunit
RUN Powershell.exe COPY C:/tmp/nunit/NUnit.Runners.2.6.4/tools/nunit-console.exe C:\nunit
RUN Powershell.exe COPY C:/tmp/nunit/NUnit.Runners.2.6.4/tools/nunit-console.exe.config C:\nunit
RUN Powershell.exe COPY C:/tmp/nunit/NUnit.Runners.2.6.4/tools/nunit.framework.dll C:\nunit
RUN Powershell.exe COPY C:/tmp/nunit/NUnit.Runners.2.6.4/tools/lib/nunit-console-runner.dll C:\nunit
RUN Powershell.exe COPY C:/tmp/nunit/NUnit.Runners.2.6.4/tools/lib/nunit.util.dll C:\nunit
RUN Powershell.exe COPY C:/tmp/nunit/NUnit.Runners.2.6.4/tools/lib/nunit.core.interfaces.dll C:\nunit
RUN Powershell.exe COPY C:/tmp/nunit/NUnit.Runners.2.6.4/tools/lib/nunit.core.dll C:\nunit
WORKDIR C:/nunit
ENTRYPOINT [“nunit-console.exe”]