Sign inSign up

skantar/linux-csharp

By skantar

Updated almost 10 years ago

Small Docker image with Mono (~177MB)

Image
1

351

skantar/linux-csharp repository overview

Docker StarsDocker Pulls

C# Docker image

This image is based on Alpine Linux image and contains Mono.

Download size of this image is only:

Usage Example

$ echo 'using System; class MainClass { public static void Main (string[] args) { Console.WriteLine ("Hello World"); } }' > example.mono
$ docker run --rm -v "$(pwd)":/mnt skantar/linux-csharp sh -c "mcs -out:/mnt/example.exe /mnt/example.mono && mono /mnt/example.exe"

Once you have run these commands you will have example.exe mono-executable in your current directory, and you will get printed 'Hello World' from Mono!

Tag summary

Content type

Image

Digest

Size

61 MB

Last updated

almost 10 years ago

docker pull skantar/linux-csharp