Best practices for running anvil app in docker container at a third-party cloud hosting service

What I’m trying to do:

Hello all,

I want to run an Anvil app in a Docker container at a third-party cloud hosting service.

On my local machine everything works (without Docker) with the standalone App Server.

I also found the standalone App Server on Docker (although it hasn’t been updated here for a year): Docker

As I understand the instructions, however, I would need to load the full (unconverted) Anvil project onto the server for this. So the app itself would not be containerized. From other environments I know the practice of compressing projects as small as possible before putting them into a container, so that the image is as small as possible. (e.g. here for Go applications: Best practices for containerizing Go applications with Docker | Snyk)

Unfortunately, I have found little documentation for containerizing Anvil apps. Does anyone here have experience on what are best practices for containerizing Anvil apps?

In this context I also noticed the possibility to download the whole Anvil app as a .yaml file. However, I haven’t found any documentation on this either and have little experience. What for and how can this .yaml be used and could it perhaps be used directly to host the application in Docker?

I would be very grateful for any hints!

You might like to have a look at Amoni

It’s also not necessary to use Docker. I run Anvil apps on inexpensive unmanaged VPS hosting at A2hosting.com. Just pip install anvil-app-server, clone your app with GIT, and run it.