Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/docker-hub-frolvlad/docker-alpine-mono
The smallest Docker image with Mono (~130MB)
https://github.com/docker-hub-frolvlad/docker-alpine-mono
alpine c-sharp docker-image mono
Last synced: about 1 month ago
JSON representation
The smallest Docker image with Mono (~130MB)
- Host: GitHub
- URL: https://github.com/docker-hub-frolvlad/docker-alpine-mono
- Owner: Docker-Hub-frolvlad
- License: mit
- Created: 2015-04-15T05:59:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-21T12:01:59.000Z (about 1 year ago)
- Last Synced: 2024-04-20T20:54:25.561Z (8 months ago)
- Topics: alpine, c-sharp, docker-image, mono
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/frolvlad/alpine-mono/
- Size: 23.4 KB
- Stars: 49
- Watchers: 6
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Docker Stars](https://img.shields.io/docker/stars/frolvlad/alpine-mono.svg?style=flat-square)](https://hub.docker.com/r/frolvlad/alpine-mono/)
[![Docker Pulls](https://img.shields.io/docker/pulls/frolvlad/alpine-mono.svg?style=flat-square)](https://hub.docker.com/r/frolvlad/alpine-mono/)Mono (C#) Docker image
======================This image is based on Alpine Linux image, which is only a 5MB image, and contains
[Mono](http://www.mono-project.com/).Download size of this image is only:
[![](https://images.microbadger.com/badges/image/frolvlad/alpine-mono.svg)](http://microbadger.com/images/frolvlad/alpine-mono "Get your own image badge on microbadger.com")
There are also legacy images of Mono 4.8, 5.0, and 5.4 based on
[glibc hack](https://github.com/gliderlabs/docker-alpine/issues/11):`4.8-glibc` -
[![](https://images.microbadger.com/badges/image/frolvlad/alpine-mono:4.8-glibc.svg)](http://microbadger.com/images/frolvlad/alpine-mono:4.8-glibc "Get your own image badge on microbadger.com")`5.0-glibc` -
[![](https://images.microbadger.com/badges/image/frolvlad/alpine-mono:5.0-glibc.svg)](http://microbadger.com/images/frolvlad/alpine-mono:5.0-glibc "Get your own image badge on microbadger.com")`5.4-glibc` -
[![](https://images.microbadger.com/badges/image/frolvlad/alpine-mono:5.4-glibc.svg)](http://microbadger.com/images/frolvlad/alpine-mono:5.4-glibc "Get your own image badge on microbadger.com")Usage Example
-------------```bash
$ 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!