Public | Automated Build

Last pushed: 4 days ago
Short Description
The smallest Docker image with Mono (~130MB)
Full Description


Mono (C#) Docker image

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.

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 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!

Docker Pull Command
Owner
frolvlad
Source Repository

Comments (1)
frolvlad
2 years ago

Please, create issues on Github if you have any questions because e-mail notifications for comments are broken (don't work at all) on Docker Hub!