[App Server] Anyone got the App Server working in Docker?

Does anyone have a working Dockerfile for running the app server (and, if so, might you care to share it)?

I’ve tried using the ‘official’ file but I hit errors when the container starts (https://github.com/anvil-works/anvil-runtime/issues/22).

1 Like

I solved this by creating a virtual environment within the docker image. I’ll tidy it up and publish it on docker hub when I get a chance.

(I also used the slim version of the base python image, so the end result is smaller).

2 Likes

Did you publish it ? :}

I went with the official one in the end but can’t remember what the issue with it was now. Sorry.

I make it work here with local server, and try to make it work with lightsail container: