You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to lunch asp.net framework MVC with Mono on Linux platform in Docker container
Did you try it?
I can pull mono and restore packages and build project but I cannot run the project with mono
I uploaded a simple MVC project on this link https://github.com/Hatef-Rostamkhani/asp.net.mvc.mono.dockerfile
The project name is aspnetapp2
for the run on docker, you can right-click on RunDocker.NetFramwork.ps1 and then execute or run by PowerShell.
can you help me?
FROM mono:latest AS build-env
WORKDIR /app
COPY *.csproj ./
RUN msbuild -t:restore
COPY . .
RUN nuget restore aspnetapp2.csproj -SolutionDirectory ../ -Verbosity normal
RUN msbuild
CMD [ "mono", "aspnetapp2.dll" ]