mono in docker container
juner
juner

Categories

Tags

how to run mono in docker container(Ref link)

# download docker ubuntu image
docker image
docker run -it ubuntu bash
# in ubuntu 
sudo apt-get update
sudo apt-get install -y mono-complete
ctrl p q
# after out of container
docker ps
docker commit containerID juner/monodev
docker images

run c# binary using mono

# return contianer
sudo apt-get install -y vim
vim hellomono.cs
public class HelloMono {
        static public void Main() {
                System.Console.WriteLine("Hello Mono!");
        }
} 
mcs hellomono.cs
mono hellomono.exe
Hello Mono!