Docker image based on alpine containing mono and bash
4.4K
Docker image with alpine as base, including mono and bash
Shamelessly stolen from https://github.com/frol/docker-alpine-mono Added bash and running of mozroots (for TLS/SSL support in mono)
This image is based on Alpine Linux image, which is only a 5MB image, and contains Mono.
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 -e 'using System; class MainClass { public static void Main (string[] args) { Console.WriteLine ("Hello World"); } }' > qq.mono
$ docker run --rm -v `pwd`:/tmp frolvlad/alpine-mono sh -c 'mcs -out:/tmp/qq.exe /tmp/qq.mono && mono /tmp/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:52c69845f…
Size
46.2 MB
Last updated
almost 11 years ago
docker pull kharnt0x/docker-alpine-mono-bash