neoeinstein/docker-mono-alpine

★ 0Forks 0GitHub ↗Compare

README

Docker Stars Docker Pulls

Mono (C#) Docker image

This image is based on Alpine Linux image, which is only a 5MB image, and contains Mono.

WARNING: That Mono image was compiled for Arch Linux and is ported to Alpine via glibc hack! It is being used because the current Mono package for Alpine Linux (based on musl instead of glibc) generates a segfault when bootstrapping the F# compiler.

Total size of this image is only:

Usage Example

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

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

Acknowledgements

This image is based on the Alpine Linux Mono image developed by frolvad.

Contributors

frol

Issues