|
| 1 | +# Supported tags and respective `Dockerfile` links |
| 2 | + |
| 3 | +- [`3.10.0`, `3.10`, `latest` (*3.10.0/Dockerfile*)](https://github.com/mono/docker/blob/96aca22c58df59c08d345cbe8af79c11b43c5f1f/3.10.0/Dockerfile) |
| 4 | +- [`3.10.0-onbuild`, `3.10-onbuild`, `onbuild` (*3.10.0/onbuild/Dockerfile*)](https://github.com/mono/docker/blob/96aca22c58df59c08d345cbe8af79c11b43c5f1f/3.10.0/onbuild/Dockerfile) |
| 5 | +- [`3.8.0`, `3.8` (*3.8.0/Dockerfile*)](https://github.com/mono/docker/blob/96aca22c58df59c08d345cbe8af79c11b43c5f1f/3.8.0/Dockerfile) |
| 6 | +- [`3.8.0-onbuild`, `3.8-onbuild` (*3.8.0/onbuild/Dockerfile*)](https://github.com/mono/docker/blob/96aca22c58df59c08d345cbe8af79c11b43c5f1f/3.8.0/onbuild/Dockerfile) |
| 7 | + |
| 8 | +For more information about this image and its history, please see the [relevant |
| 9 | +manifest file |
| 10 | +(`library/mono`)](https://github.com/docker-library/official-images/blob/master/library/mono) |
| 11 | +in the [`docker-library/official-images` GitHub |
| 12 | +repo](https://github.com/docker-library/official-images). |
| 13 | + |
| 14 | +# What is Mono |
| 15 | + |
| 16 | +Sponsored by Xamarin, Mono is an open source implementation of Microsoft's .NET |
| 17 | +Framework based on the ECMA standards for C# and the Common Language Runtime. A |
| 18 | +growing family of solutions and an active and enthusiastic contributing |
| 19 | +community is helping position Mono to become the leading choice for development |
| 20 | +of cross platform applications. |
| 21 | + |
| 22 | +* [Mono Project homepage](http://www.mono-project.com/) |
| 23 | +* [http://en.wikipedia.org/wiki/Mono_(software)](http://en.wikipedia.org/wiki/Mono_(software)) |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | +# How to use this image |
| 28 | + |
| 29 | +This image will run stand-alone Mono console apps. |
| 30 | + |
| 31 | +## Create a `Dockerfile` in your Mono app project |
| 32 | + |
| 33 | +This example Dockerfile will run an executable called `TestingConsoleApp.exe`. |
| 34 | + |
| 35 | + FROM mono:3.10-onbuild |
| 36 | + CMD [ "mono", "./TestingConsoleApp.exe" ] |
| 37 | + |
| 38 | +Place this file in the root of your app, next to the `.sln` solution file. |
| 39 | +Modify the exectuable name to match what you want to run. |
| 40 | + |
| 41 | +This image includes `ONBUILD` triggers that adds your app source code to |
| 42 | +`/usr/src/app/source`, restores NuGet packages and compiles the app, placing the |
| 43 | +output in `/usr/src/app/build`. |
| 44 | + |
| 45 | +With the Dockerfile in place, you can build and run a Docker image with your |
| 46 | +app: |
| 47 | + |
| 48 | + docker build -t my-app . |
| 49 | + docker run my-app |
| 50 | + |
| 51 | +You should see any output from your app now. |
| 52 | + |
| 53 | +# Credits |
| 54 | + |
| 55 | +This Docker image is provided by Xamarin, for users of the Mono Project. |
| 56 | + |
| 57 | +Thanks to [Michael Friis](http://friism.com/) for his preliminary work. |
| 58 | + |
| 59 | +# License |
| 60 | + |
| 61 | +This Docker Image is licensed with the Expat License. See the [Mono Project |
| 62 | +licensing FAQ](http://www.mono-project.com/docs/faq/licensing/) for details on |
| 63 | +how Mono and associated libraries are licensed. |
| 64 | + |
| 65 | +# User Feedback |
| 66 | + |
| 67 | +Please report issues on the [GitHub project](https://github.com/mono/docker). |
0 commit comments