Slug size error in Heroku when deploying Streamlit app

Hi @arun_ramji.
I apologize in advance if I’m not clear in all the steps.

  1. install caprover CLI in your local computer (https://caprover.com/docs/get-started.html step 3)
  2. You prepare your streamlit app to deploy with a docker container (https://www.youtube.com/watch?v=doCia_CKcko)
  3. Add file “captain-definition” to app folder (https://caprover.com/docs/captain-definition-file.html). In my case contents of the file is:
    {
    “schemaVersion”: 2,
    “dockerfilePath”: “./Dockerfile”
    }
  4. On caprover server create a new app
  5. In app folder run “caprover deploy” and follow the instructions
  6. in setting app on caprover server (tab http settings) set parameter:
  • http container port: the same port where run streamlit app.
  • And flag websocket support.

I hope I have been clear enough

3 Likes