Skip to content

write Dockerfile for implement asp.net framework MVC project with Mono on docker in Linux Container #1

@Hatef-Rostamkhani

Description

@Hatef-Rostamkhani

Hi friends

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" ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions