Sign inSign up

neoeinstein/mono-alpine

By neoeinstein

•Updated over 10 years ago

Alpine Linux configured with the latest Mono package from the Arch Linux distribution

Image
1

7.1K

neoeinstein/mono-alpine repository overview

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⁠.

Tag summary

Content type

Image

Digest

Size

50.6 MB

Last updated

over 10 years ago

docker pull neoeinstein/mono-alpine