Streamlit on Azure

Hi @Kerelu and @sojohan

I have successfully deployed awesome-streamlit.org via Docker and Azure. It’s actually running at https://awesome-streamlit.azurewebsites.net/.

I had a lot of problems before eventually getting it working.

The most important to solve was to discover that you need to switch “Always on in the configuraiton settings”. Otherwise your docker container will be closed down after X minutes of inactivity. Leading it to have very, very long response times.

I also set folderWatchBlacklist = [''] in the config.toml file.

I also setup a script to ping my web site every 5 minutes to keep it being responsive. It’s running inside the docker container. I’m actually not sure this is needed. But I still do it.

Then I did a lot of other things to solve this. But some where because I did some very special things with streamlit. So these where changes to the code and should not be relevant to you.

I would really like there to be a guide and could maybe also find the motivation to write one the next time i deploy a streamlit app to Azure via Docker. But I don’t know when that will be unfortunately.

See my docker files and the ping script here

For a lengthy discussion see

For other discussions see

1 Like