Public | Automated Build

Last pushed: 2 years ago
Short Description
Alpine Linux configured with the latest Mono package from the Arch Linux distribution
Full Description

Mono (C#) Docker image

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

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!


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

Docker Pull Command
Source Repository