Deploying ASP.NET Core App in Fly.io in Free Tier

There is no documentation on deploying a ASP.NET Core app in fly.io and when I used a docker container it could not start during to memory issue in the free tier.

I found two ways to reduce memory, using a project setting

<ServerGarbageCollection>false</ServerGarbageCollection>;

and using compiling for linux-musl-x64 helped me to run the app in the free tier.

Published a guide and project in Github GitHub - Arshu/ASP.NET-Core-In-Fly.io: Publishing a ASP.NET Core App in Fly.io. I discovered this while working (work in progress) on a more complex declarative web app framework using html/json which i am using fly.io to deploy which I think may be useful to others

1 Like

Nice! Good trick.