The smallest Docker image with Mono (~130MB)
50K+
This image is based on Alpine Linux image, which is only a 5MB image, and contains Mono.
Download size of this image is only:
WARNING: This mono was compiled for Arch Linux and is ported to Alpine via glibc hack! Ideally, Mono package should be added to Alpine repo, but I don't have much time now.
$ echo 'using System; class MainClass { public static void Main (string[] args) { Console.WriteLine ("Hello World"); } }' > qq.mono
$ docker run --rm -v "$(pwd)":/mnt frolvlad/alpine-mono 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!
Content type
Image
Digest
sha256:8310272f8…
Size
102.8 MB
Last updated
5 months ago
docker pull frolvlad/alpine-mono