HUB
Sign inSign up

frolvlad/alpine-mono

By frolvlad

•Updated 8 months ago

The smallest Docker image with Mono (~130MB)

Buildkit cacheImage
19

50K+

frolvlad/alpine-mono 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⁠.

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!

Tag summary
Recent tags
Content type
Image
Digest
sha256:8310272f8…
Size
102.8 MB
Last updated
8 months ago
docker pull frolvlad/alpine-mono:latest