93 lines
4.2 KiB
Markdown
93 lines
4.2 KiB
Markdown
<!--
|
|
|
|
********************************************************************************
|
|
|
|
WARNING:
|
|
|
|
DO NOT EDIT "mono/README.md"
|
|
|
|
IT IS AUTO-GENERATED
|
|
|
|
(from the other files in "mono/" combined with a set of templates)
|
|
|
|
********************************************************************************
|
|
|
|
-->
|
|
|
|
# Supported tags and respective `Dockerfile` links
|
|
|
|
- [`3.12.1`, `3.12.0`, `3.12`, `3` (*3.12.1/Dockerfile*)](https://github.com/mono/docker/blob/0d987d93235630e05a14983c7f87500ab33c90da/3.12.1/Dockerfile)
|
|
- [`4.8.0.524`, `4.8.0`, `4.8`, `4` (*4.8.0.524/Dockerfile*)](https://github.com/mono/docker/blob/0d987d93235630e05a14983c7f87500ab33c90da/4.8.0.524/Dockerfile)
|
|
- [`5.0.0.100`, `5.0.0` (*5.0.0.100/Dockerfile*)](https://github.com/mono/docker/blob/d7a8871afc770695b81977272792d8966340939e/5.0.0.100/Dockerfile)
|
|
- [`5.0.1.1`, `5.0.1`, `5.0`, `5`, `latest` (*5.0.1.1/Dockerfile*)](https://github.com/mono/docker/blob/39b989ea0ef3e787fb75410521217cb7cb7df05e/5.0.1.1/Dockerfile)
|
|
|
|
# Quick reference
|
|
|
|
- **Where to get help**:
|
|
[the Docker Community Forums](https://forums.docker.com/), [the Docker Community Slack](https://blog.docker.com/2016/11/introducing-docker-community-directory-docker-community-slack/), or [Stack Overflow](https://stackoverflow.com/search?tab=newest&q=docker)
|
|
|
|
- **Where to file issues**:
|
|
[https://github.com/mono/docker/issues](https://github.com/mono/docker/issues)
|
|
|
|
- **Maintained by**:
|
|
[the Mono Project](https://github.com/mono/docker)
|
|
|
|
- **Published image artifact details**:
|
|
[repo-info repo's `repos/mono/` directory](https://github.com/docker-library/repo-info/blob/master/repos/mono) ([history](https://github.com/docker-library/repo-info/commits/master/repos/mono))
|
|
(image metadata, transfer size, etc)
|
|
|
|
- **Image updates**:
|
|
[official-images PRs with label `library/mono`](https://github.com/docker-library/official-images/pulls?q=label%3Alibrary%2Fmono)
|
|
[official-images repo's `library/mono` file](https://github.com/docker-library/official-images/blob/master/library/mono) ([history](https://github.com/docker-library/official-images/commits/master/library/mono))
|
|
|
|
- **Source of this description**:
|
|
[docs repo's `mono/` directory](https://github.com/docker-library/docs/tree/master/mono) ([history](https://github.com/docker-library/docs/commits/master/mono))
|
|
|
|
- **Supported Docker versions**:
|
|
[the latest release](https://github.com/docker/docker/releases/latest) (down to 1.6 on a best-effort basis)
|
|
|
|
# What is Mono
|
|
|
|
Sponsored by Xamarin, Mono is an open source implementation of Microsoft's .NET Framework based on the ECMA standards for C# and the Common Language Runtime. A growing family of solutions and an active and enthusiastic contributing community is helping position Mono to become the leading choice for development of cross platform applications.
|
|
|
|
- [Mono Project homepage](http://www.mono-project.com/)
|
|
- [http://en.wikipedia.org/wiki/Mono_(software)](http://en.wikipedia.org/wiki/Mono_%28software%29)
|
|
|
|

|
|
|
|
# How to use this image
|
|
|
|
This image will run stand-alone Mono console apps.
|
|
|
|
## Create a `Dockerfile` in your Mono app project
|
|
|
|
This example Dockerfile will run an executable called `TestingConsoleApp.exe`.
|
|
|
|
```dockerfile
|
|
FROM mono:3.10-onbuild
|
|
CMD [ "mono", "./TestingConsoleApp.exe" ]
|
|
```
|
|
|
|
Place this file in the root of your app, next to the `.sln` solution file. Modify the exectuable name to match what you want to run.
|
|
|
|
This image includes `ONBUILD` triggers that adds your app source code to `/usr/src/app/source`, restores NuGet packages and compiles the app, placing the output in `/usr/src/app/build`.
|
|
|
|
With the Dockerfile in place, you can build and run a Docker image with your app:
|
|
|
|
```console
|
|
$ docker build -t my-app .
|
|
$ docker run my-app
|
|
```
|
|
|
|
You should see any output from your app now.
|
|
|
|
# Credits
|
|
|
|
This Docker image is provided by Xamarin, for users of the Mono Project.
|
|
|
|
Thanks to [Michael Friis](http://friism.com/) for his preliminary work.
|
|
|
|
# License
|
|
|
|
This Docker Image is licensed with the Expat License. See the [Mono Project licensing FAQ](http://www.mono-project.com/docs/faq/licensing/) for details on how Mono and associated libraries are licensed.
|