I am trying to package a tensorflow image classification app with streamlit UI.
I have pushed the image and a URL to my app page was generated.
But it fails to load the streamlit UI. On inspecting the logs, I found this.
Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
In my Dockerfile:
# bind port EXPOSE 8501
However, Heroku does not support this. (https://devcenter.heroku.com/articles/container-registry-and-runtime#dockerfile-commands-and-runtime)
EXPOSEcan be used for local testing, it is not supported in Heroku’s container runtime. Instead your web process/code should get the $PORT environment variable.
Any idea how to bind ports properly from streamlit to heroku?