C# on Linux, in Docker
Summary
C# is going through a somewhat of a renaissance at the moment, largely driven by the release of the open source, cross platform version .NET Core. Ruby is great for quick prototyping, and some of the open-source services like Gitlab are amazing, but I do find dynamic langauges harder to maintain over time, than I do with static languages like C#. We also use Docker on out Linux box to keep all the services seperated and easy to migrate to other hosts, so it makes sense to do the same for the C# & F# code. That file looks like this: The key things to be aware of are: • Use of environmental variables to choose the URL, and which environment to use (and hence which appsettings.json file to use) • to download all required nuget packages (which will be cached after the first run) • when running the site. If you dont do this, the launch settings file from Visual Studio will be used, and the enviromental variables above ignored.